Merge pull request #19707 from RobotSail/react-18-props-with-children-upgrade
react 18 props with children upgrade
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user