feat(IonReactMemoryRouter): migrate to rr6 memory router

This commit is contained in:
Sean Perkins
2024-07-17 17:09:48 -04:00
parent 0ba5219c09
commit 0a2a8b0f09

View File

@@ -1,7 +1,7 @@
import type { Action as HistoryAction, Location as HistoryLocation, MemoryHistory } from 'history';
import React from 'react';
import type { MemoryRouterProps } from 'react-router';
import { Router } from 'react-router';
import { MemoryRouter } from 'react-router';
import { IonRouter } from './IonRouter';
@@ -43,9 +43,9 @@ export class IonReactMemoryRouter extends React.Component<IonReactMemoryRouterPr
render() {
const { children, ...props } = this.props;
return (
<Router {...props}>
<MemoryRouter {...props}>
<IonRouter registerHistoryListener={this.registerHistoryListener}>{children}</IonRouter>
</Router>
</MemoryRouter>
);
}
}