feat: reset modal

This commit is contained in:
QiShaoXuan
2022-10-20 14:43:14 +08:00
parent 96baeacc26
commit e13aeda5b2
14 changed files with 144 additions and 152 deletions
@@ -50,7 +50,9 @@ export const ShortcutsModal = ({ open, onClose }: ModalProps) => {
<CloseIcon />
</CloseButton>
</StyledModalHeader>
<StyledSubTitle>Keyboard shortcuts</StyledSubTitle>
<StyledSubTitle style={{ marginTop: 0 }}>
Keyboard shortcuts
</StyledSubTitle>
{Object.entries(keyboardShortcuts).map(([title, shortcuts]) => {
return (
<StyledListItem key={title}>
@@ -35,6 +35,7 @@ export const StyledSubTitle = styled.div(({ theme }) => ({
fontSize: '12px',
height: '36px',
lineHeight: '36px',
marginTop: '28px',
}));
export const StyledModalHeader = styled.div(({ theme }) => ({
display: 'flex',