Browse Source

refactor: Simplify a file.

Daniel J. Geiger 1 year ago
parent
commit
1bd86942f3
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/components/ContextMenu.tsx

+ 1 - 4
src/components/ContextMenu.tsx

@@ -5,7 +5,6 @@ import { t, TranslationKeys } from "../i18n";
 import "./ContextMenu.scss";
 import {
   getShortcutFromShortcutName,
-  CustomShortcutName,
   ShortcutName,
 } from "../actions/shortcuts";
 import { Action } from "../actions/types";
@@ -117,9 +116,7 @@ export const ContextMenu = React.memo(
                   <div className="context-menu-item__label">{label}</div>
                   <kbd className="context-menu-item__shortcut">
                     {actionName
-                      ? getShortcutFromShortcutName(
-                          actionName as ShortcutName | CustomShortcutName,
-                        )
+                      ? getShortcutFromShortcutName(actionName as ShortcutName)
                       : ""}
                   </kbd>
                 </button>