fix/v0.5.0_bug (#9)
Co-authored-by: Junhui Chen <chenjunhui@fairclip.cn> Reviewed-on: #9
This commit is contained in:
parent
182d2b02d4
commit
74b2167ba9
@ -18,6 +18,8 @@ export default function HomeScreen() {
|
|||||||
router.replace('/ask')
|
router.replace('/ask')
|
||||||
}, false).then(() => {
|
}, false).then(() => {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
|
}).catch(() => {
|
||||||
|
setIsLoading(false);
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import ConversationsSvg from '@/assets/icons/svg/conversations.svg';
|
import ConversationsSvg from '@/assets/icons/svg/conversations.svg';
|
||||||
import MoreArrowSvg from '@/assets/icons/svg/moreArrow.svg';
|
|
||||||
import PointsSvg from '@/assets/icons/svg/points.svg';
|
import PointsSvg from '@/assets/icons/svg/points.svg';
|
||||||
import StoriesSvg from '@/assets/icons/svg/stories.svg';
|
import StoriesSvg from '@/assets/icons/svg/stories.svg';
|
||||||
import UsedStorageSvg from '@/assets/icons/svg/usedStorage.svg';
|
import UsedStorageSvg from '@/assets/icons/svg/usedStorage.svg';
|
||||||
@ -89,13 +88,10 @@ export default function OwnerPage() {
|
|||||||
|
|
||||||
{/* 资源数据 */}
|
{/* 资源数据 */}
|
||||||
<View style={styles.resourceContainer}>
|
<View style={styles.resourceContainer}>
|
||||||
<View style={{ gap: 16, width: "80%" }}>
|
<View style={{ gap: 16 }}>
|
||||||
<ResourceComponent title={t("generalSetting.usedStorage", { ns: "personal" })} data={{ all: userInfoDetails.total_bytes, used: countData.used_bytes }} icon={<UsedStorageSvg />} isFormatBytes={true} />
|
<ResourceComponent title={t("generalSetting.usedStorage", { ns: "personal" })} data={{ all: userInfoDetails.total_bytes, used: countData.used_bytes }} icon={<UsedStorageSvg />} isFormatBytes={true} />
|
||||||
<ResourceComponent title={t("generalSetting.remainingPoints", { ns: "personal" })} data={{ all: userInfoDetails.total_points, used: userInfoDetails.remain_points }} icon={<PointsSvg />} />
|
<ResourceComponent title={t("generalSetting.remainingPoints", { ns: "personal" })} data={{ all: userInfoDetails.total_points, used: userInfoDetails.remain_points }} icon={<PointsSvg />} />
|
||||||
</View>
|
</View>
|
||||||
<View style={{ alignItems: 'flex-end', flex: 1 }}>
|
|
||||||
<MoreArrowSvg />
|
|
||||||
</View>
|
|
||||||
</View>
|
</View>
|
||||||
{/* 数据统计 */}
|
{/* 数据统计 */}
|
||||||
<CountComponent
|
<CountComponent
|
||||||
|
|||||||
3
assets/icons/svg/send.svg
Normal file
3
assets/icons/svg/send.svg
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 296 B |
@ -1,5 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
import VoiceSvg from '@/assets/icons/svg/vioce.svg';
|
import SendSvg from '@/assets/icons/svg/send.svg';
|
||||||
import React, { Dispatch, SetStateAction, useCallback, useEffect, useState } from 'react';
|
import React, { Dispatch, SetStateAction, useCallback, useEffect, useState } from 'react';
|
||||||
import {
|
import {
|
||||||
Keyboard,
|
Keyboard,
|
||||||
@ -125,9 +125,12 @@ export default function SendMessage(props: Props) {
|
|||||||
/>
|
/>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.voiceButton}
|
style={styles.voiceButton}
|
||||||
|
onPress={handleSubmit}
|
||||||
className={`absolute right-0 top-1/2 -translate-y-1/2 `} // 使用绝对定位将按钮放在输入框内右侧
|
className={`absolute right-0 top-1/2 -translate-y-1/2 `} // 使用绝对定位将按钮放在输入框内右侧
|
||||||
>
|
>
|
||||||
<VoiceSvg />
|
<View style={{ transform: [{ rotate: '330deg' }] }}>
|
||||||
|
<SendSvg color={'white'} width={24} height={24} />
|
||||||
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@ -156,6 +159,6 @@ const styles = StyleSheet.create({
|
|||||||
backgroundColor: '#FF9500',
|
backgroundColor: '#FF9500',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
marginRight: 8, // 添加一点右边距
|
marginRight: 8, // 添加一点
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -11,10 +11,10 @@ const AlbumComponent = ({ setModalVisible, style }: CategoryProps) => {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<View style={[styles.container, style]}>
|
<View style={[styles.container, style]}>
|
||||||
<TouchableOpacity style={{ flex: 3 }}>
|
<TouchableOpacity style={{ flex: 3, opacity: 0 }}>
|
||||||
<ThemedText style={styles.text}>{t('generalSetting.album', { ns: 'personal' })}</ThemedText>
|
<ThemedText style={styles.text}>{t('generalSetting.album', { ns: 'personal' })}</ThemedText>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<TouchableOpacity style={{ flex: 3 }}>
|
<TouchableOpacity style={{ flex: 3, opacity: 0 }}>
|
||||||
<ThemedText style={styles.text}>{t('generalSetting.shareProfile', { ns: 'personal' })}</ThemedText>
|
<ThemedText style={styles.text}>{t('generalSetting.shareProfile', { ns: 'personal' })}</ThemedText>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<TouchableOpacity onPress={() => setModalVisible(true)} style={[styles.text, { flex: 1, alignItems: "center", paddingVertical: 6 }]}>
|
<TouchableOpacity onPress={() => setModalVisible(true)} style={[styles.text, { flex: 1, alignItems: "center", paddingVertical: 6 }]}>
|
||||||
|
|||||||
@ -42,9 +42,10 @@ const PrivacyModal = (props: { modalVisible: boolean, setModalVisible: (visible:
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if (type) {
|
||||||
loadArticle();
|
loadArticle();
|
||||||
}, []);
|
}
|
||||||
|
}, [type]);
|
||||||
|
|
||||||
if (!article) {
|
if (!article) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -73,7 +73,7 @@ const UserInfo = (props: UserInfoProps) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (modalVisible) {
|
if (modalVisible) {
|
||||||
getLocation();
|
getLocation();
|
||||||
if (Object.keys(currentLocation).length === 0) {
|
if (currentLocation && Object?.keys(currentLocation)?.length === 0) {
|
||||||
getCurrentLocation();
|
getCurrentLocation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user