From 1cf742e5d6d59bb6218ec2fd9f0ebf10b52d7094 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Mon, 21 Oct 2024 20:30:36 +0200 Subject: [PATCH] Fix --- .../src/modules/app/components/AppRouterProviders.tsx | 4 ++-- .../{GotoHotkeysEffect.tsx => GotoHotkeysEffectsProvider.tsx} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename packages/twenty-front/src/modules/app/effect-components/{GotoHotkeysEffect.tsx => GotoHotkeysEffectsProvider.tsx} (94%) diff --git a/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx b/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx index 80b02508f736..df7bb083f9dc 100644 --- a/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx +++ b/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx @@ -1,6 +1,6 @@ import { ApolloProvider } from '@/apollo/components/ApolloProvider'; import { CommandMenuEffect } from '@/app/effect-components/CommandMenuEffect'; -import { GotoHotkeys } from '@/app/effect-components/GotoHotkeysEffect'; +import { GotoHotkeysEffectsProvider } from '@/app/effect-components/GotoHotkeysEffectsProvider'; import { PageChangeEffect } from '@/app/effect-components/PageChangeEffect'; import { AuthProvider } from '@/auth/components/AuthProvider'; import { ChromeExtensionSidecarEffect } from '@/chrome-extension-sidecar/components/ChromeExtensionSidecarEffect'; @@ -45,7 +45,7 @@ export const AppRouterProviders = () => { - + diff --git a/packages/twenty-front/src/modules/app/effect-components/GotoHotkeysEffect.tsx b/packages/twenty-front/src/modules/app/effect-components/GotoHotkeysEffectsProvider.tsx similarity index 94% rename from packages/twenty-front/src/modules/app/effect-components/GotoHotkeysEffect.tsx rename to packages/twenty-front/src/modules/app/effect-components/GotoHotkeysEffectsProvider.tsx index 0ea244ecd5a8..44267f5c34e3 100644 --- a/packages/twenty-front/src/modules/app/effect-components/GotoHotkeysEffect.tsx +++ b/packages/twenty-front/src/modules/app/effect-components/GotoHotkeysEffectsProvider.tsx @@ -7,7 +7,7 @@ import { useGoToHotkeys } from '@/ui/utilities/hotkey/hooks/useGoToHotkeys'; import { useLocation } from 'react-router-dom'; import { useRecoilCallback } from 'recoil'; -export const GotoHotkeys = () => { +export const GotoHotkeysEffectsProvider = () => { const { nonSystemActiveObjectMetadataItems } = useNonSystemActiveObjectMetadataItems(); @@ -23,7 +23,7 @@ export const GotoHotkeys = () => { set(navigationDrawerExpandedMemorizedState, true); set(navigationMemorizedUrlState, location.pathname + location.search); }, - [], + [location.pathname, location.search], ), });