fix: 修改登录状态检查,移除不必要的属性
This commit is contained in:
parent
57aeda8f78
commit
244155ef95
|
|
@ -582,11 +582,11 @@ const GooActions = observer<GooActionsProps>(function GooActions({ gooPoints, on
|
||||||
{isDev && isPolling && <Block className="ml-[4px] size-[6px] rounded-full bg-green-500" />}
|
{isDev && isPolling && <Block className="ml-[4px] size-[6px] rounded-full bg-green-500" />}
|
||||||
</Block>
|
</Block>
|
||||||
)}
|
)}
|
||||||
{!!isAuthenticated && (
|
{!!isLogin && (
|
||||||
<Block onClick={() => router.push('/settings')}>
|
<Block onClick={() => router.push('/settings')}>
|
||||||
<Ionicons color="white" name="settings-outline" size={22} />
|
<Ionicons color="white" name="settings-outline" size={22} />
|
||||||
</Block>
|
</Block>
|
||||||
)}
|
)}
|
||||||
<Block
|
<Block
|
||||||
className="size-[48px] items-center justify-center rounded-full border-[3px] border-black bg-white shadow-[4px_4px_0px_#000]"
|
className="size-[48px] items-center justify-center rounded-full border-[3px] border-black bg-white shadow-[4px_4px_0px_#000]"
|
||||||
onClick={onOpenSearch}
|
onClick={onOpenSearch}
|
||||||
|
|
|
||||||
|
|
@ -427,7 +427,7 @@ const Sync = observer(() => {
|
||||||
data={posts}
|
data={posts}
|
||||||
// drawDistance={300}
|
// drawDistance={300}
|
||||||
maxItemsInRecyclePool={0}
|
maxItemsInRecyclePool={0}
|
||||||
removeClippedSubviews={true}
|
// removeClippedSubviews={true}
|
||||||
ItemSeparatorComponent={() => <Block style={{ height: 6 }} />}
|
ItemSeparatorComponent={() => <Block style={{ height: 6 }} />}
|
||||||
keyExtractor={(item: any) => item?.id}
|
keyExtractor={(item: any) => item?.id}
|
||||||
ListFooterComponent={ListFooter}
|
ListFooterComponent={ListFooter}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ type MenuItem = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default observer(function SettingsPage() {
|
export default observer(function SettingsPage() {
|
||||||
const { user, isAuthenticated, signOut } = userStore
|
const { user, signOut } = userStore
|
||||||
|
|
||||||
const handleLogout = () => {
|
const handleLogout = () => {
|
||||||
Toast.showModal(
|
Toast.showModal(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue