Skip to content

Commit

Permalink
FIX UI size
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Mar 11, 2022
1 parent 1475a7c commit 81aadb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/react-app/hooks/use-blink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export const BLINK_MODES = [
},
];

const BIGGER_VIEWS = ["DIRECTION_HOLD", "HOLD"];

export const useBlink = (...params) => {
const { loading: blinkModeLoading, value: blinkMode } = useStoreValue(
BLINK_MODE,
Expand All @@ -48,7 +50,7 @@ export const useBlink = (...params) => {

useResizer({
width: 900,
height: !blinkModeLoading && blinkMode === "DIRECTION_HOLD" ? 523 : 440,
height: !blinkModeLoading && BIGGER_VIEWS.includes(blinkMode) ? 523 : 440,
});

const [displayOnSlider, setDisplayOnSlider] = useState({
Expand Down

0 comments on commit 81aadb4

Please sign in to comment.