-
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 #73 from Joseonpaldo/minseok
Minseok
- Loading branch information
Showing
13 changed files
with
392 additions
and
157 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,87 @@ | ||
import React from 'react'; | ||
import { Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle } from "@mui/material"; | ||
import Button from "@mui/material/Button"; | ||
|
||
const DeleteRoomModal = ({ open, onClose, confirm }) => { | ||
return ( | ||
<Dialog | ||
open={open} | ||
onClose={onClose} | ||
aria-labelledby="invite-dialog-title" | ||
aria-describedby="invite-dialog-description" | ||
PaperProps={{ | ||
style: { | ||
borderRadius: '15px', | ||
padding: '20px', | ||
backgroundColor: '#f7f9fc', | ||
boxShadow: '0 5px 15px rgba(0, 0, 0, 0.3)', | ||
}, | ||
}} | ||
> | ||
<DialogTitle | ||
id="invite-dialog-title" | ||
sx={{ | ||
textAlign: 'center', | ||
color: '#ff6f61', | ||
fontWeight: 'bold', | ||
fontSize: '1.5rem', | ||
borderBottom: '1px solid #ececec', | ||
paddingBottom: '10px', | ||
}} | ||
> | ||
로비를 삭제하시겠습니까? | ||
</DialogTitle> | ||
<DialogContent> | ||
<DialogContentText | ||
id="invite-dialog-description" | ||
sx={{ | ||
textAlign: 'center', | ||
color: '#333', | ||
fontSize: '1.2rem', | ||
margin: '20px 0', | ||
}} | ||
> | ||
예를 누를 시 즉시 로비가 삭제됩니다 | ||
</DialogContentText> | ||
</DialogContent> | ||
<DialogActions sx={{ justifyContent: 'center' }}> | ||
|
||
<Button | ||
color="primary" | ||
onClick={confirm} | ||
variant="contained" | ||
sx={{ | ||
backgroundColor: '#ff6f61', | ||
color: '#fff', | ||
'&:hover': { | ||
backgroundColor: '#ff8a65', | ||
}, | ||
padding: '8px 20px', | ||
borderRadius: '25px', | ||
fontWeight: 'bold', | ||
}} | ||
> | ||
예 | ||
</Button> | ||
<Button | ||
color='secondary' | ||
onClick={onClose} | ||
variant="contained" | ||
sx={{ | ||
backgroundColor: '#ff6f61', | ||
color: '#fff', | ||
'&:hover': { | ||
backgroundColor: '#ff8a65', | ||
}, | ||
padding: '8px 20px', | ||
borderRadius: '25px', | ||
fontWeight: 'bold', | ||
}}> | ||
아니오 | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default DeleteRoomModal; |
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,79 @@ | ||
|
||
import React from 'react'; | ||
import { Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle } from "@mui/material"; | ||
import Button from "@mui/material/Button"; | ||
|
||
const DeleteRoomModal = ({ open, onClose, confirm }) => { | ||
const handleClose = (event, reason) => { | ||
if (reason !== 'backdropClick' && reason !== 'escapeKeyDown') { | ||
onClose(event, reason); | ||
} | ||
}; | ||
|
||
return ( | ||
<Dialog | ||
open={open} | ||
onClose={handleClose} | ||
aria-labelledby="invite-dialog-title" | ||
aria-describedby="invite-dialog-description" | ||
PaperProps={{ | ||
style: { | ||
borderRadius: '15px', | ||
padding: '20px', | ||
backgroundColor: '#f7f9fc', | ||
boxShadow: '0 5px 15px rgba(0, 0, 0, 0.3)', | ||
}, | ||
}} | ||
> | ||
<DialogTitle | ||
id="invite-dialog-title" | ||
sx={{ | ||
textAlign: 'center', | ||
color: '#ff6f61', | ||
fontWeight: 'bold', | ||
fontSize: '1.5rem', | ||
borderBottom: '1px solid #ececec', | ||
paddingBottom: '10px', | ||
}} | ||
> | ||
로비 삭제 | ||
</DialogTitle> | ||
<DialogContent> | ||
<DialogContentText | ||
id="invite-dialog-description" | ||
sx={{ | ||
textAlign: 'center', | ||
color: '#333', | ||
fontSize: '1.2rem', | ||
margin: '20px 0', | ||
}} | ||
> | ||
성공적으로 삭제했습니다 | ||
</DialogContentText> | ||
</DialogContent> | ||
<DialogActions sx={{ justifyContent: 'center' }}> | ||
|
||
<Button | ||
color="primary" | ||
onClick={confirm} | ||
variant="contained" | ||
sx={{ | ||
backgroundColor: '#ff6f61', | ||
color: '#fff', | ||
'&:hover': { | ||
backgroundColor: '#ff8a65', | ||
}, | ||
padding: '8px 20px', | ||
borderRadius: '25px', | ||
fontWeight: 'bold', | ||
}} | ||
> | ||
브라우저 종료 | ||
</Button> | ||
|
||
</DialogActions> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default DeleteRoomModal; |
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
Oops, something went wrong.