first commit
This commit is contained in:
15
src/app/setup/page.tsx
Normal file
15
src/app/setup/page.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
"use client"
|
||||
|
||||
import { useRouter } from 'next/navigation'
|
||||
import { CreateFirstUser } from '@/components/setup/CreateFirstUser'
|
||||
|
||||
export default function SetupPage() {
|
||||
const router = useRouter()
|
||||
|
||||
const handleSuccess = () => {
|
||||
// После успешного создания пользователя перенаправляем на страницу входа
|
||||
router.push('/login')
|
||||
}
|
||||
|
||||
return <CreateFirstUser onSuccess={handleSuccess} />
|
||||
}
|
Reference in New Issue
Block a user