chore: update props types to use PropsWithChildren

Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
This commit is contained in:
Oleg S
2023-08-31 16:07:55 -04:00
parent cc2efe286a
commit 13f3b3491e
25 changed files with 77 additions and 61 deletions
@@ -85,7 +85,7 @@ describe('useSearchModal', () => {
const history = createMemoryHistory({ initialEntries: ['/'] });
const rendered = renderHook(() => useSearchModal(true), {
wrapper: ({ children }) => (
wrapper: ({ children }: React.PropsWithChildren<{}>) => (
<Router location={history.location} navigator={history}>
{children}
</Router>