-
Notifications
You must be signed in to change notification settings - Fork 1
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 #475 from KEEPER31337/feature/도서_신청_버튼_클릭시_모달창_생성_…
…#446 Feature/도서 신청 버튼 클릭시 모달창 생성 #446
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { useState } from 'react'; | ||
|
||
import { Typography } from '@mui/material'; | ||
import ConfirmModal from '@components/Modal/ConfirmModal'; | ||
|
||
interface RequestBookModalProps { | ||
open: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
const RequestBookModal = ({ open, onClose }: RequestBookModalProps) => { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const [librarian, setLibrarian] = useState<string>('박소현'); | ||
|
||
return ( | ||
<ConfirmModal open={open} onClose={onClose} title="신청완료"> | ||
<Typography>신청이 완료되었습니다.</Typography> | ||
<Typography>사서({librarian})에게 승인 요청 해주세요.</Typography> | ||
</ConfirmModal> | ||
); | ||
}; | ||
|
||
export default RequestBookModal; |