-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various enhancements, show settings on export dialog
- Loading branch information
Showing
14 changed files
with
194 additions
and
63 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/common-components/enhanced-dialog/enhanced-dialog-title.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,30 @@ | ||
import { DialogTitle, IconButton } from "@mui/material"; | ||
|
||
import CloseIcon from "@mui/icons-material/Close"; | ||
|
||
type EnhancedDialogTitleProps = { | ||
title: string; | ||
onClose: () => void; | ||
}; | ||
|
||
const EnhancedDialogTitle = ({ title, onClose }: EnhancedDialogTitleProps) => { | ||
return ( | ||
<> | ||
<DialogTitle sx={{ padding: "10px 24px 0px 24px" }}>{title}</DialogTitle> | ||
<IconButton | ||
size="small" | ||
onClick={onClose} | ||
sx={(theme) => ({ | ||
position: "absolute", | ||
right: 8, | ||
top: 8, | ||
color: theme.palette.grey[500], | ||
})} | ||
> | ||
<CloseIcon /> | ||
</IconButton> | ||
</> | ||
); | ||
}; | ||
|
||
export default EnhancedDialogTitle; |
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
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.