|
1 |
| -import * as S from './styles' |
| 1 | +import { useEffect } from 'react' |
2 | 2 | import { Helmet } from 'react-helmet-async'
|
| 3 | +import { useNavigate, useSearchParams } from 'react-router-dom' |
| 4 | +import { createRegister } from '~apis/register/createRegister' |
3 | 5 | import AddOwnerAvatar from '~assets/add-dog-picture.svg'
|
| 6 | +import { ActionButton } from '~components/Button/ActionButton' |
4 | 7 | import GenderSelectButton from '~components/GenderSelectButton'
|
5 | 8 | import { Input } from '~components/Input'
|
| 9 | +import Toast from '~components/Toast' |
| 10 | +import { FAMILY_ROLE } from '~constants/familyRole' |
| 11 | +import { useGeolocation } from '~hooks/useGeolocation' |
| 12 | +import FamilyRoleChoiceModal from '~modals/PositionChoiceModal' |
6 | 13 | import RegisterAvatarModal from '~modals/RegisterAvatarModal'
|
7 | 14 | import { useModalStore } from '~stores/modalStore'
|
8 |
| -import { ActionButton } from '~components/Button/ActionButton' |
9 |
| -import FamilyRoleChoiceModal from '~modals/PositionChoiceModal' |
10 |
| -import { useGeolocation } from '~hooks/useGeolocation' |
11 | 15 | import { useOwnerProfileStore } from '~stores/ownerProfileStore'
|
12 |
| -import { validateOwnerProfile } from '~utils/validateOwnerProfile' |
13 |
| -import RegisterDogPage from '~pages/RegisterPage/Dog' |
14 |
| -import Toast from '~components/Toast' |
15 | 16 | import { useToastStore } from '~stores/toastStore'
|
16 |
| -import { useNavigate, useSearchParams } from 'react-router-dom' |
17 |
| -import { createRegister } from '~apis/register/createRegister' |
18 | 17 | import { FamilyRole } from '~types/common'
|
19 |
| -import { useEffect } from 'react' |
20 |
| -import { FAMILY_ROLE } from '~constants/familyRole' |
| 18 | +import { validateOwnerProfile } from '~utils/validateOwnerProfile' |
| 19 | +import * as S from './styles' |
21 | 20 |
|
22 | 21 | export default function Register() {
|
23 | 22 | const { ownerProfile, setOwnerProfile } = useOwnerProfileStore()
|
|
0 commit comments