u
This commit is contained in:
1 parent
26ff2381b7
commit
00a1cce5ac
22 files changed
+335
-215
No files matched your search
@@ -1,39 +0,0 @@
|
||||
import { useNavigation } from 'expo-router'
|
||||
import React, { useState } from 'react'
|
||||
import { Text, View } from 'react-native'
|
||||
import { AButton, AModal } from '@/components/common/ao'
|
||||
import AnimatedSwitch from '@/components/common/ao/Switch'
|
||||
import { useSpaceStore } from '@/store/space'
|
||||
|
||||
export default function TestScreen() {
|
||||
const [showDissolve, setShowDissolve] = useState(false)
|
||||
const spaceStore = useSpaceStore()
|
||||
const navigation = useNavigation()
|
||||
|
||||
console.log(navigation.getState()?.routeNames)
|
||||
|
||||
return (
|
||||
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
|
||||
<AButton onPress={() => {
|
||||
setShowDissolve(true)
|
||||
}}
|
||||
>
|
||||
{spaceStore.currentSpace?.space_id}
|
||||
</AButton>
|
||||
<AModal
|
||||
title="提示"
|
||||
body="确认解散该空间么?"
|
||||
isOpen={showDissolve}
|
||||
onClose={() => {
|
||||
setShowDissolve(false)
|
||||
}}
|
||||
onCancel={() => {
|
||||
setShowDissolve(false)
|
||||
}}
|
||||
onConfirm={() => {
|
||||
setShowDissolve(false)
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export default function Index() {
|
||||
<AButton
|
||||
className="w-full"
|
||||
onPress={() => {
|
||||
navStore.navigateTo('finance/index')
|
||||
navStore.navigateTo('finance')
|
||||
}}
|
||||
>
|
||||
开始使用
|
||||
|
||||
@@ -25,7 +25,7 @@ export default function User() {
|
||||
</View>
|
||||
|
||||
<View className="mt-8 flex flex-col">
|
||||
<ListItem icon="Earth" text="共享空间" href="/system/share" />
|
||||
{/* <ListItem icon="Earth" text="共享空间" href="/system/share" /> */}
|
||||
<ListItem icon="Settings" text="设置"href="/system/settings" />
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
|
||||
Reference in new issue
Block a user