diff --git a/packages/apps/user/package.json b/packages/apps/user/package.json index 742f9348..6eea0fdb 100644 --- a/packages/apps/user/package.json +++ b/packages/apps/user/package.json @@ -46,5 +46,6 @@ }, "devDependencies": { "eslint-config-enact-proxy": "^1.0.5" - } + }, + "homepage": "./" } diff --git a/packages/apps/user/src/routes/authRoutes.js b/packages/apps/user/src/routes/authRoutes.js index 1150ab41..2f4914ef 100644 --- a/packages/apps/user/src/routes/authRoutes.js +++ b/packages/apps/user/src/routes/authRoutes.js @@ -8,6 +8,7 @@ import Step1 from '../views/Auth/SignUp/Step1'; import Step2 from '../views/Auth/SignUp/Step2'; import Step3 from '../views/Auth/SignUp/Step3'; import AuthRoot from '../components/Root/AuthRoot'; +import AuthCallback from '../views/Auth/AuthCallback/AuthCallback'; const authRoutes = { path: 'auth', @@ -61,6 +62,10 @@ const authRoutes = { path: 'log-in', element: , }, + { + path: 'callback', + element: , + }, ], }; diff --git a/packages/apps/user/src/views/Auth/AuthCallback/AuthCallback.js b/packages/apps/user/src/views/Auth/AuthCallback/AuthCallback.js new file mode 100644 index 00000000..d48d9a49 --- /dev/null +++ b/packages/apps/user/src/views/Auth/AuthCallback/AuthCallback.js @@ -0,0 +1,86 @@ +import { + Button, + ButtonGroup, + FormControl, + FormErrorMessage, + FormLabel, + Heading, + Input, + Modal, + ModalContent, + ModalOverlay, + VStack, + useDisclosure, +} from '@chakra-ui/react'; +import { useForm } from 'react-hook-form'; +import { Form } from 'react-router-dom'; +import { DaumPostcodeEmbed } from 'react-daum-postcode'; +import { useState } from 'react'; + +const AuthCallback = function () { + const [address, setAddress] = useState(''); + const { isOpen, onOpen, onClose } = useDisclosure(); + const { + register, + handleSubmit, + formState: { errors }, + } = useForm(); + + const handleComplete = data => { + setAddress(data.address); + onClose(); + }; + + const onSubmit = data => { + //TODO 데이터의 address와 addressDetail을 서버로 전송 + }; + + return ( + + + 필수 정보를 입력해주세요 + +
+ + 주소 + + + + + {errors?.message} + + + + + + + + + + + + +
+
+ ); +}; + +export default AuthCallback;