-
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 #132 from YAPP-Github/feature/FE-093
Feature/fe-093 : 생성/수정 페이지 QA 반영
- Loading branch information
Showing
26 changed files
with
576 additions
and
42 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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 { Button, Modal, Typography } from '@/components'; | ||
|
||
interface Props { | ||
onClose: () => void; | ||
onClick?: () => void; | ||
content?: string; | ||
footer?: string | string[]; | ||
} | ||
|
||
const FreezeModal = ({ | ||
content = '페이지를 나가면 작성 중인 먹팟이 삭제돼요.', | ||
footer = ['나가기', '계속 작성하기'], | ||
onClose, | ||
onClick, | ||
}: Props) => { | ||
return ( | ||
<Modal onClose={onClose} size="small"> | ||
<Modal.Header type="info" title="안내" /> | ||
<Modal.Content size="small"> | ||
<Typography style={{ whiteSpace: 'pre-line' }} variant="body3" color="secondary"> | ||
{content} | ||
</Typography> | ||
</Modal.Content> | ||
<Modal.Footer type="horizontal"> | ||
<Button onClick={onClick} color="text" size="micro"> | ||
{footer[0]} | ||
</Button> | ||
<Button onClick={onClose} color="primary" size="micro"> | ||
{footer[1]} | ||
</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default FreezeModal; |
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
Oops, something went wrong.