init: 初始化模板项目
This commit is contained in:
18
packages/app/features/user/detail-screen.tsx
Normal file
18
packages/app/features/user/detail-screen.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Button, Paragraph, YStack } from '@my/ui'
|
||||
import { ChevronLeft } from '@tamagui/lucide-icons'
|
||||
import { useRouter } from 'solito/navigation'
|
||||
|
||||
export function UserDetailScreen({ id }: { id: string }) {
|
||||
const router = useRouter()
|
||||
if (!id) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
<YStack flex={1} justify="center" items="center" gap="$4" bg="$background">
|
||||
<Paragraph text="center" fontWeight="700" color="$blue10">{`User ID: ${id}`}</Paragraph>
|
||||
<Button icon={ChevronLeft} onPress={() => router.back()}>
|
||||
Go Home
|
||||
</Button>
|
||||
</YStack>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user