update navigation for react-router v6

This commit is contained in:
Min RK
2024-03-08 14:26:41 +01:00
parent bfe143f1ac
commit 77e625d36d
11 changed files with 82 additions and 115 deletions

View File

@@ -26,11 +26,7 @@ var mockAsyncRejection = () =>
var addUserJsx = (spy, spy2, spy3) => (
<Provider store={createStore(() => {}, {})}>
<HashRouter>
<AddUser
addUsers={spy}
updateUsers={spy3 || spy2 || spy}
history={{ push: () => {} }}
/>
<AddUser addUsers={spy} updateUsers={spy3 || spy2 || spy} />
</HashRouter>
</Provider>
);