mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
chore(react): fixing test and another method to tab nav
This commit is contained in:
@ -10,6 +10,7 @@ export interface NavContextState {
|
||||
navigate: (path: string, direction?: RouterDirection | 'none') => void;
|
||||
hasIonicRouter: () => boolean;
|
||||
registerIonPage: (page: HTMLElement) => void;
|
||||
tabNavigate: (url: string) => void;
|
||||
currentPath: string | undefined;
|
||||
}
|
||||
|
||||
@ -26,6 +27,7 @@ export const NavContext = /*@__PURE__*/React.createContext<NavContextState>({
|
||||
}
|
||||
},
|
||||
navigate: (path: string) => { window.location.pathname = path; },
|
||||
tabNavigate: () => undefined,
|
||||
hasIonicRouter: () => false,
|
||||
registerIonPage: () => undefined,
|
||||
currentPath: undefined
|
||||
|
Reference in New Issue
Block a user