mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
chore(react): fixing issue with new history types (#22109)
This commit is contained in:
@ -4,12 +4,12 @@ import { BrowserRouterProps, Router } from 'react-router-dom';
|
||||
|
||||
import { IonRouter } from './IonRouter';
|
||||
|
||||
interface IonReactHashRouterProps<THistoryLocationState = History.PoorMansUnknown> extends BrowserRouterProps {
|
||||
history?: History<THistoryLocationState>;
|
||||
interface IonReactHashRouterProps extends BrowserRouterProps {
|
||||
history?: History;
|
||||
}
|
||||
|
||||
export class IonReactHashRouter extends React.Component<IonReactHashRouterProps> {
|
||||
history: History<History.PoorMansUnknown>;
|
||||
history: History;
|
||||
historyListenHandler?: ((location: HistoryLocation, action: HistoryAction) => void);
|
||||
|
||||
constructor(props: IonReactHashRouterProps) {
|
||||
|
Reference in New Issue
Block a user