Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinnas committed Aug 26, 2024
1 parent 8d57fc3 commit 65c9fd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const BootstrapDialog = styled(Dialog)(({ theme }) => ({

interface ShortcutsDialogProps {
open: boolean;
handleClose: () => void;
onClose: () => void;
}

export const ShortcutsDialog = ({ open, handleClose }: ShortcutsDialogProps) => {
export const ShortcutsDialog = ({ open, onClose }: ShortcutsDialogProps) => {
const Theme = useTheme();

const [isMac, setIsMac] = useState<boolean>(false);
Expand All @@ -46,7 +46,7 @@ export const ShortcutsDialog = ({ open, handleClose }: ShortcutsDialogProps) =>
};

return (
<BootstrapDialog onClose={handleClose} open={open}>
<BootstrapDialog onClose={onClose} open={open}>
<Grid container spacing={2} justifyContent='center' alignItems='center'>
<Grid item xs={8}>
<DialogTitle sx={{ color: Theme.palette.primary.main, pl: '1.5rem', pt: '1.5rem', fontWeight: '700' }}>
Expand All @@ -57,7 +57,7 @@ export const ShortcutsDialog = ({ open, handleClose }: ShortcutsDialogProps) =>
<Box display='flex' justifyContent='flex-end'>
<IconButton
aria-label='close'
onClick={handleClose}
onClick={onClose}
sx={{
color: Theme.palette.primary.main,
mt: '0.5rem',
Expand Down
2 changes: 1 addition & 1 deletion app/front-end/src/components/layouts/baseLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const BaseLayout: React.FC<Props> = ({ children }) => {
{children}
</Box>
<SettingsDialog open={isSettingsDialogOpen} onClose={handleSettingsDialogClose} />
<ShortcutsDialog open={isShortcutsMenuOpen} handleClose={handleShortcutsMenuClose} />
<ShortcutsDialog open={isShortcutsMenuOpen} onClose={handleShortcutsMenuClose} />
</Box>
</Box>
);
Expand Down

0 comments on commit 65c9fd0

Please sign in to comment.