We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b86df8 commit 7354707Copy full SHA for 7354707
src/components/NavigationTree/NavigationTree.tsx
@@ -30,7 +30,7 @@ const renderServiceNode = (node: NavigationTreeServiceNode) => {
30
return <EmptyView key={key} level={node.level} />;
31
};
32
33
-export function NavigationTree({
+export function NavigationTree<D = any, M = any>({
34
rootState: partialRootState,
35
fetchPath,
36
getActions,
@@ -40,7 +40,7 @@ export function NavigationTree({
40
onActivePathUpdate,
41
cache = true,
42
virtualize = false,
43
-}: NavigationTreeProps) {
+}: NavigationTreeProps<D, M>) {
44
const [state, dispatch] = React.useReducer(reducer, {
45
[partialRootState.path]: getNodeState(partialRootState),
46
});
0 commit comments