chore(IonRouteInner): update render

This commit is contained in:
Maria Hutt
2025-06-09 15:57:13 -07:00
parent a78f6b3151
commit 93202c070e
2 changed files with 3 additions and 6 deletions

View File

@@ -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} />;
};

View File

@@ -4,7 +4,6 @@ import { NavContext } from '../contexts/NavContext';
export interface IonRouteProps {
path?: string;
end?: boolean;
show?: boolean;
element: React.ReactElement;
disableIonPageManagement?: boolean;