diff --git a/site/source/hooks/useGérerPath.ts b/site/source/hooks/useGérerPath.ts deleted file mode 100644 index c8f88ae2b..000000000 --- a/site/source/hooks/useGérerPath.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { SitePathsContext } from '@/components/utils/SitePathsContext' -import { companySituationSelector } from '@/selectors/simulationSelectors' -import { useContext } from 'react' -import { useSelector } from 'react-redux' -import { generatePath } from 'react-router' - -export const useGérerPath = () => { - const sitePaths = useContext(SitePathsContext) - const company = useSelector(companySituationSelector) - const siren = (company['entreprise . SIREN'] as string).replace(/'/g, '') - - return generatePath(sitePaths.gérer.index, { entreprise: siren }) -} diff --git a/site/source/pages/Landing/SearchOrCreate.tsx b/site/source/pages/Landing/SearchOrCreate.tsx index 54b18c048..9061f98d4 100644 --- a/site/source/pages/Landing/SearchOrCreate.tsx +++ b/site/source/pages/Landing/SearchOrCreate.tsx @@ -41,7 +41,7 @@ export default function SearchOrCreate() {