Skip to content

Commit

Permalink
define children explicitly in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmkenny committed Jan 3, 2025
1 parent 484f247 commit df945f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface OverlayBase extends HTMLElement {

export interface ReactControllerProps {
isOpen: boolean;
children?: React.ReactNode;
onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
onDidPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
onWillDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/navigation/IonNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const IonNavInner = createReactComponent<JSX.IonNav & { delegate: FrameworkDeleg
);

type IonNavProps = JSX.IonNav & {
children?: React.ReactNode;
forwardedRef?: React.ForwardedRef<HTMLIonNavElement>;
};

Expand Down
1 change: 1 addition & 0 deletions packages/react/src/routing/NavManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ interface NavManagerProps {
ionRoute: any;
stackManager: any;
locationHistory: LocationHistory;
children?: React.ReactNode;
}

export class NavManager extends React.PureComponent<NavManagerProps, NavContextState> {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/routing/PageManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { StackContext } from './StackContext';

interface PageManagerProps {
className?: string;
children?: React.ReactNode;
forwardedRef?: React.ForwardedRef<HTMLDivElement>;
routeInfo?: RouteInfo;
}
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/routing/ViewLifeCycleManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { DefaultIonLifeCycleContext, IonLifeCycleContext } from '../contexts/Ion
interface ViewTransitionManagerProps {
removeView: () => void;
mount: boolean;
children?: React.ReactNode;
}

interface ViewTransitionManagerState {
Expand Down

0 comments on commit df945f5

Please sign in to comment.