We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b67e0b4 commit 076904cCopy full SHA for 076904c
1 file changed
templates/admin/src/lib/plume-admin-router/Navigate.tsx
@@ -1,8 +1,8 @@
1
-import { routes } from '@components/router/RouterDefinition.ts';
+import { DeclaredRoutePaths, routes } from '@components/router/RouterDefinition.ts';
2
import { useEffect } from 'react';
3
4
type NavigateProps = {
5
- to: ReturnType<typeof routes[unknown]>,
+ to: ReturnType<typeof routes[DeclaredRoutePaths]>,
6
};
7
8
function Navigate(
@@ -12,7 +12,6 @@ function Navigate(
12
): null {
13
useEffect(() => {
14
to.push();
15
- // eslint-disable-next-line react-hooks/exhaustive-deps -- need to run only once on mount
16
}, []);
17
18
return null;
0 commit comments