-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from ppochaco/fix/221-profile-question
Week11/issue#221 프로필 질문 답장하기 401 에러 추가
- Loading branch information
Showing
4 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/pages/ProfileQuestionPage/WriteReply/LoginModal/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { BiError } from 'react-icons/bi' | ||
import { useNavigate } from 'react-router-dom' | ||
|
||
import { | ||
ConfirmModal, | ||
ConfirmModalButton, | ||
} from '@/components/Modal/ConfirmModal' | ||
import { Modal } from '@/types' | ||
|
||
interface LoginModalProps { | ||
modal: Modal | ||
} | ||
|
||
export const LoginModal = ({ modal }: LoginModalProps) => { | ||
const navigate = useNavigate() | ||
|
||
return ( | ||
<ConfirmModal | ||
isOpen={modal.isOpen} | ||
onClose={modal.onClose} | ||
icon={<BiError />} | ||
title="로그인 후 이용해주세요" | ||
description="" | ||
confirmButton={ | ||
<ConfirmModalButton | ||
onClick={() => { | ||
navigate('/login') | ||
modal.onClose() | ||
}} | ||
> | ||
확인 | ||
</ConfirmModalButton> | ||
} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters