mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
chore(react): adding prettier and formating files
This commit is contained in:
@ -6,8 +6,7 @@ import PageManager from '../routing/PageManager';
|
||||
import { IonicReactProps } from './IonicReactProps';
|
||||
import { createForwardRef } from './utils';
|
||||
|
||||
interface IonPageProps extends IonicReactProps {
|
||||
}
|
||||
interface IonPageProps extends IonicReactProps {}
|
||||
|
||||
interface IonPageInternalProps extends IonPageProps {
|
||||
forwardedRef?: React.RefObject<HTMLDivElement>;
|
||||
@ -23,21 +22,23 @@ class IonPageInternal extends React.Component<IonPageInternalProps> {
|
||||
render() {
|
||||
const { className, children, forwardedRef, ...props } = this.props;
|
||||
|
||||
return (
|
||||
this.context.hasIonicRouter() ? (
|
||||
<PageManager
|
||||
className={className ? `${className}` : ''}
|
||||
routeInfo={this.context.routeInfo}
|
||||
forwardedRef={forwardedRef}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</PageManager>
|
||||
) : (
|
||||
<div className={className ? `ion-page ${className}` : 'ion-page'} ref={forwardedRef} {...props}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
return this.context.hasIonicRouter() ? (
|
||||
<PageManager
|
||||
className={className ? `${className}` : ''}
|
||||
routeInfo={this.context.routeInfo}
|
||||
forwardedRef={forwardedRef}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</PageManager>
|
||||
) : (
|
||||
<div
|
||||
className={className ? `ion-page ${className}` : 'ion-page'}
|
||||
ref={forwardedRef}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user