Skip to content

Commit

Permalink
fix wallet ready shortcut keys (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel authored Jul 12, 2023
1 parent ce98f5b commit f6d8e9f
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/entries/popup/pages/walletReady/ReadyHotkeys/OptionAltPress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ import { Box } from '~/design-system';

import { activeTransitions, inactiveTransitions } from './pressTransitions.css';

const isWindows = navigator.userAgent.indexOf('Win') !== -1;
const OptionPressed = isWindows ? OptionPressedWindows : OptionPressedMacOS;
const isMac = navigator.userAgent.indexOf('Mac') !== -1;
const OptionPressed = isMac ? OptionPressedMacOS : OptionPressedWindows;

const OptionPressedBottom = isWindows
? OptionPressedBottomWindows
: OptionPressedBottomMacOS;
const OptionPressedBottom = isMac
? OptionPressedBottomMacOS
: OptionPressedBottomWindows;

const OptionInactive = isWindows ? OptionInactiveWindows : OptionInactiveMacOS;
const OptionInactive = isMac ? OptionInactiveMacOS : OptionInactiveWindows;

const OptionInactiveBottom = isWindows
? OptionInactiveBottomWindows
: OptionInactiveBottomMacOS;
const OptionInactiveBottom = isMac
? OptionInactiveBottomMacOS
: OptionInactiveBottomWindows;

const OptionPressedLight = isWindows
? OptionPressedWindowsLight
: OptionPressedMacOSLight;
const OptionPressedLight = isMac
? OptionPressedMacOSLight
: OptionPressedWindowsLight;

const OptionPressedBottomLight = isWindows
? OptionPressedBottomWindowsLight
: OptionPressedBottomMacOSLight;
const OptionPressedBottomLight = isMac
? OptionPressedBottomMacOSLight
: OptionPressedBottomWindowsLight;

const OptionInactiveLight = isWindows
? OptionInactiveWindowsLight
: OptionInactiveMacOSLight;
const OptionInactiveLight = isMac
? OptionInactiveMacOSLight
: OptionInactiveWindowsLight;

const OptionInactiveBottomLight = isWindows
? OptionInactiveBottomWindowsLight
: OptionInactiveBottomMacOSLight;
const OptionInactiveBottomLight = isMac
? OptionInactiveBottomMacOSLight
: OptionInactiveBottomWindowsLight;

export function OptionAltPress({
isOptionPressed,
Expand Down

0 comments on commit f6d8e9f

Please sign in to comment.