From 7cb8e2d784e96bae1d0264544500bb0d4b88efcb Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 27 May 2022 23:14:32 -0500 Subject: [PATCH] cleanup keyboard shortcut --- packages/desktop/package.json | 3 +- .../src/components/KeyboardShortcutLabel.tsx | 7 - packages/desktop/src/components/Terminal.tsx | 3 + yarn.lock | 196 +++++++++++++++++- 4 files changed, 199 insertions(+), 10 deletions(-) diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 8f82a46..1613247 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -97,6 +97,7 @@ "notistack": "^2.0.5", "react": "^18.1.0", "react-dom": "^18.1.0", - "react-icons": "^4.3.1" + "react-icons": "^4.3.1", + "react-use": "^17.4.0" } } diff --git a/packages/desktop/src/components/KeyboardShortcutLabel.tsx b/packages/desktop/src/components/KeyboardShortcutLabel.tsx index 7c5fece..aee2772 100644 --- a/packages/desktop/src/components/KeyboardShortcutLabel.tsx +++ b/packages/desktop/src/components/KeyboardShortcutLabel.tsx @@ -2,13 +2,6 @@ import React from 'react'; import { Box, styled, Typography } from '@mui/material'; import { blueGrey } from '@mui/material/colors'; -const StyledBox = styled(Box)(({ theme }) => ({ - px: theme.spacing(1), - py: theme.spacing(0.5), - border: `1px solid`, - borderColor: blueGrey[50], -})); - export default function KeyboardShortcutLabel({ label }: { label: string }) { return (