-
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.
- Loading branch information
1 parent
140419e
commit 1c9a8ac
Showing
7 changed files
with
130 additions
and
164 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
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,32 @@ | ||
import Dialog from "@mui/material/Dialog"; | ||
import DialogTitle from "@mui/material/DialogTitle"; | ||
import DialogContent from "@mui/material/DialogContent"; | ||
import TableContainer from "@mui/material/TableContainer"; | ||
import Table from "@mui/material/Table"; | ||
import { ReactNode } from "react"; | ||
|
||
type Props = { | ||
onClose: () => void; | ||
open: boolean; | ||
title: string; | ||
children: ReactNode; | ||
}; | ||
|
||
export const HistoryDialog = ({ onClose, open, children, title }: Props) => { | ||
return ( | ||
<Dialog onClose={onClose} open={open} sx={{ ".MuiPaper-root": { maxWidth: "715px" } }}> | ||
<DialogTitle sx={{ pb: 2.5 }}>{title}</DialogTitle> | ||
<DialogContent | ||
sx={{ | ||
minWidth: "715px", | ||
width: "fit-content", | ||
height: "450px", | ||
}} | ||
> | ||
<TableContainer> | ||
<Table>{children}</Table> | ||
</TableContainer> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
}; |
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 was deleted.
Oops, something went wrong.
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