mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(react): adding prettier and formating files
This commit is contained in:
@@ -41,11 +41,9 @@ export const withIonLifeCycle = (WrappedComponent: React.ComponentType<any>) =>
|
||||
render() {
|
||||
return (
|
||||
<IonLifeCycleContext.Consumer>
|
||||
{context => {
|
||||
{(context) => {
|
||||
this.context = context;
|
||||
return (
|
||||
<WrappedComponent ref={this.componentRef} {...this.props} />
|
||||
);
|
||||
return <WrappedComponent ref={this.componentRef} {...this.props} />;
|
||||
}}
|
||||
</IonLifeCycleContext.Consumer>
|
||||
);
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
export { withIonLifeCycle } from './IonLifeCycleHOC';
|
||||
export { useIonViewDidEnter, useIonViewDidLeave, useIonViewWillEnter, useIonViewWillLeave } from './hooks';
|
||||
export {
|
||||
useIonViewDidEnter,
|
||||
useIonViewDidLeave,
|
||||
useIonViewWillEnter,
|
||||
useIonViewWillLeave,
|
||||
} from './hooks';
|
||||
|
||||
Reference in New Issue
Block a user