cleanup: Minor theme related cleanup

This commit is contained in:
blessedcoolant
2023-06-30 06:09:14 +12:00
parent fb015332f2
commit 295444c730
8 changed files with 24 additions and 41 deletions

View File

@ -1,8 +1,7 @@
// Grid drawing adapted from https://longviewcoder.com/2021/12/08/konva-a-better-grid/
import { useColorMode, useColorModeValue, useToken } from '@chakra-ui/react';
import { useColorMode, useToken } from '@chakra-ui/react';
import { createSelector } from '@reduxjs/toolkit';
import { RootState } from 'app/store/store';
import { useAppSelector } from 'app/store/storeHooks';
import { canvasSelector } from 'features/canvas/store/canvasSelectors';
import { isEqual, range } from 'lodash-es';
@ -24,9 +23,6 @@ const selector = createSelector(
);
const IAICanvasGrid = () => {
const currentTheme = useAppSelector(
(state: RootState) => state.ui.currentTheme
);
const { stageScale, stageCoordinates, stageDimensions } =
useAppSelector(selector);
const { colorMode } = useColorMode();
@ -112,7 +108,6 @@ const IAICanvasGrid = () => {
stageScale,
stageCoordinates,
stageDimensions,
currentTheme,
unscale,
colorMode,
darkGridLineColor,