mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(IonRouteInner): update render
This commit is contained in:
@@ -2,8 +2,6 @@ import type { IonRouteProps } from '@ionic/react';
|
||||
import React from 'react';
|
||||
import { Route } from 'react-router';
|
||||
|
||||
export class IonRouteInner extends React.PureComponent<IonRouteProps> {
|
||||
render() {
|
||||
return <Route path={this.props.path} end={this.props.end} element={this.props.element} />;
|
||||
}
|
||||
}
|
||||
export const IonRouteInner = ({ path, element }: IonRouteProps) => {
|
||||
return <Route path={path} element={element} />;
|
||||
};
|
||||
|
||||
@@ -4,7 +4,6 @@ import { NavContext } from '../contexts/NavContext';
|
||||
|
||||
export interface IonRouteProps {
|
||||
path?: string;
|
||||
end?: boolean;
|
||||
show?: boolean;
|
||||
element: React.ReactElement;
|
||||
disableIonPageManagement?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user