chore(react): adding prettier and formating files

This commit is contained in:
Ely Lucas
2020-12-07 09:31:33 -07:00
committed by GitHub
parent 01afdc42e5
commit 91aaaab71a
163 changed files with 3205 additions and 2535 deletions

View File

@@ -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>
);

View File

@@ -1,3 +1,7 @@
export { withIonLifeCycle } from './IonLifeCycleHOC';
export { useIonViewDidEnter, useIonViewDidLeave, useIonViewWillEnter, useIonViewWillLeave } from './hooks';
export {
useIonViewDidEnter,
useIonViewDidLeave,
useIonViewWillEnter,
useIonViewWillLeave,
} from './hooks';