mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
chore(react): migrate to eslint, add prettier (#26633)
This commit is contained in:
@ -3,9 +3,10 @@ import React from 'react';
|
||||
import { NavContext } from '../contexts/NavContext';
|
||||
import PageManager from '../routing/PageManager';
|
||||
|
||||
import { IonicReactProps } from './IonicReactProps';
|
||||
import type { IonicReactProps } from './IonicReactProps';
|
||||
import { createForwardRef } from './utils';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface IonPageProps extends IonicReactProps {}
|
||||
|
||||
interface IonPageInternalProps extends IonPageProps {
|
||||
@ -32,11 +33,7 @@ class IonPageInternal extends React.Component<IonPageInternalProps> {
|
||||
{children}
|
||||
</PageManager>
|
||||
) : (
|
||||
<div
|
||||
className={className ? `ion-page ${className}` : 'ion-page'}
|
||||
ref={forwardedRef}
|
||||
{...props}
|
||||
>
|
||||
<div className={className ? `ion-page ${className}` : 'ion-page'} ref={forwardedRef} {...props}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user