Update dependencies

Fix missing peer dependencies:
  - warning " > @graphql-codegen/client-preset@4.8.0" has unmet peer dependency "graphql-sock@^1.0.0".
  - warning " > @graphql-codegen/typescript-operations@4.6.0" has unmet peer dependency "graphql-sock@^1.0.0"

Ignore missing peer dependency for "mui-nested-menu" (package itself doesn't get used but a copy&pasted and modified version of its "NestedMenuItem" component
This commit is contained in:
schroda
2025-04-09 22:39:28 +02:00
parent ecbc0e3be2
commit 55c4a92b26
4 changed files with 756 additions and 777 deletions

View File

@@ -11,15 +11,15 @@ import { useHotkeysContext } from 'react-hotkeys-hook';
import { HotkeyScope } from '@/modules/hotkeys/Hotkeys.types.ts';
export const useDisableAllHotkeysWhileMounted = (shouldDisable?: boolean) => {
const { enabledScopes, enableScope, disableScope } = useHotkeysContext();
const previouslyEnabledScopes = useRef<typeof enabledScopes>([]);
const { activeScopes, enableScope, disableScope } = useHotkeysContext();
const previouslyEnabledScopes = useRef<typeof activeScopes>([]);
useEffect(() => {
if (!shouldDisable) {
return () => {};
}
previouslyEnabledScopes.current = [...enabledScopes];
previouslyEnabledScopes.current = [...activeScopes];
enableScope(HotkeyScope.NONE);
previouslyEnabledScopes.current.forEach(disableScope);

View File

@@ -16,7 +16,7 @@ import React, {
useRef,
useState,
} from 'react';
import Grid, { Grid2TypeMap as GridTypeMap } from '@mui/material/Grid2';
import Grid, { GridTypeMap } from '@mui/material/Grid';
import Box, { BoxProps } from '@mui/material/Box';
import { GridItemProps, GridStateSnapshot, VirtuosoGrid } from 'react-virtuoso';
import { useLocation } from 'react-router-dom';