Skip to content

Commit d502ef1

Browse files
authored
Merge pull request #19 from KWcapstone/15-feat-스플래쉬-나머지-api-연결
15 feat 스플래쉬 나머지 api 연결
2 parents 28d0b7c + d66890e commit d502ef1

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/views/splash/components/AgreeModal.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ import { postSignUp } from "@/api/splash/signup";
1212
interface AgreeModalProps {
1313
onCloseModal: () => void;
1414
onOpenSignup: () => void;
15+
onOpenLogin: () => void;
1516
}
1617

17-
const AgreeModal = ({ onCloseModal, onOpenSignup }: AgreeModalProps) => {
18+
const AgreeModal = ({
19+
onCloseModal,
20+
onOpenSignup,
21+
onOpenLogin,
22+
}: AgreeModalProps) => {
1823
const [active, setActive] = useState(false);
1924
const [allAgree, setAllAgree] = useState(false);
2025
const [agree1, setAgree1] = useState(false);
@@ -66,7 +71,7 @@ const AgreeModal = ({ onCloseModal, onOpenSignup }: AgreeModalProps) => {
6671
localStorage.removeItem("name");
6772
localStorage.removeItem("email");
6873
localStorage.removeItem("password");
69-
onCloseModal();
74+
onOpenLogin();
7075
})
7176
.catch((error) => {
7277
console.error("가입 실패", error);

src/views/splash/components/SignupModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ const SignupModal = ({
182182
setEmailError("");
183183
postEmailduplication(emailValue)
184184
.then((response) => {
185+
alert("인증코드가 발송되었습니다.");
185186
console.log("이메일 중복 확인 성공", response);
186187
setCodeInput("");
187188
})

src/views/splash/page/SplashPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const SplashPage = () => {
8282
<AgreeModal
8383
onCloseModal={closeModal}
8484
onOpenSignup={openSignupModal}
85+
onOpenLogin={openLoginModal}
8586
/>
8687
</div>
8788
)}

0 commit comments

Comments
 (0)