fix: 修改登录状态检查,移除不必要的属性

This commit is contained in:
康猛 2026-01-27 14:13:55 +08:00
parent 57aeda8f78
commit 244155ef95
3 changed files with 4 additions and 4 deletions

View File

@ -582,7 +582,7 @@ const GooActions = observer<GooActionsProps>(function GooActions({ gooPoints, on
{isDev && isPolling && <Block className="ml-[4px] size-[6px] rounded-full bg-green-500" />}
</Block>
)}
{!!isAuthenticated && (
{!!isLogin && (
<Block onClick={() => router.push('/settings')}>
<Ionicons color="white" name="settings-outline" size={22} />
</Block>

View File

@ -427,7 +427,7 @@ const Sync = observer(() => {
data={posts}
// drawDistance={300}
maxItemsInRecyclePool={0}
removeClippedSubviews={true}
// removeClippedSubviews={true}
ItemSeparatorComponent={() => <Block style={{ height: 6 }} />}
keyExtractor={(item: any) => item?.id}
ListFooterComponent={ListFooter}

View File

@ -15,7 +15,7 @@ type MenuItem = {
}
export default observer(function SettingsPage() {
const { user, isAuthenticated, signOut } = userStore
const { user, signOut } = userStore
const handleLogout = () => {
Toast.showModal(