init: 初始化模板项目
This commit is contained in:
17
apps/next/pages/pages-example-user/[id].tsx
Normal file
17
apps/next/pages/pages-example-user/[id].tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { UserDetailScreen } from 'app/features/user/detail-screen'
|
||||
import Head from 'next/head'
|
||||
import { createParam } from 'solito'
|
||||
|
||||
const { useParam } = createParam<{ id: string }>()
|
||||
|
||||
export default function Page() {
|
||||
const [id] = useParam('id') as unknown as string
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>User</title>
|
||||
</Head>
|
||||
<UserDetailScreen id={id} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user