porridger/front/src/pages/LoginPage.tsx
2023-08-15 23:33:58 +03:00

20 lines
408 B
TypeScript

import { useNavigate } from 'react-router-dom'
import { AuthForm, CardLayout } from '../components'
function LoginPage() {
const navigate = useNavigate()
function goBack() {
navigate(-1 - Number(import.meta.env.DEV))
}
return (
<CardLayout text='Представьтесь'>
<AuthForm goBack={goBack} />
</CardLayout>
)
}
export default LoginPage