From 40e356f1020f83f1626c0fb4423cda4eb7eca8b5 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 4 Mar 2024 11:39:36 +0000 Subject: [PATCH] fix: format code --- src/App.tsx | 7 ++++++- src/pages/Filesystem.tsx | 7 ++++++- src/pages/LocalNotifications.tsx | 2 +- src/pages/PushNotifications.tsx | 2 +- src/pages/TextZoom.tsx | 4 ++-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b4a0dcd..9056ca8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,11 @@ import React, { useEffect } from 'react'; import { Redirect, Route } from 'react-router-dom'; -import { IonApp, IonRouterOutlet, IonSplitPane, setupIonicReact } from '@ionic/react'; +import { + IonApp, + IonRouterOutlet, + IonSplitPane, + setupIonicReact, +} from '@ionic/react'; import { IonReactRouter } from '@ionic/react-router'; import { SplashScreen } from '@capacitor/splash-screen'; diff --git a/src/pages/Filesystem.tsx b/src/pages/Filesystem.tsx index cf82e0f..a309c42 100644 --- a/src/pages/Filesystem.tsx +++ b/src/pages/Filesystem.tsx @@ -13,7 +13,12 @@ import { IonProgressBar, } from '@ionic/react'; import React, { useState } from 'react'; -import { Filesystem, Directory, Encoding, ProgressStatus } from '@capacitor/filesystem'; +import { + Filesystem, + Directory, + Encoding, + ProgressStatus, +} from '@capacitor/filesystem'; interface myCallback { (path: string): void; diff --git a/src/pages/LocalNotifications.tsx b/src/pages/LocalNotifications.tsx index f63a566..9e22629 100644 --- a/src/pages/LocalNotifications.tsx +++ b/src/pages/LocalNotifications.tsx @@ -122,7 +122,7 @@ const LocalNotificationsPage: React.FC = () => { const checkPermissions = async () => { const permissions = await ensurePermissions(); setHasPermission(permissions); - } + }; return ( diff --git a/src/pages/PushNotifications.tsx b/src/pages/PushNotifications.tsx index e3a884f..fd4d571 100644 --- a/src/pages/PushNotifications.tsx +++ b/src/pages/PushNotifications.tsx @@ -59,7 +59,7 @@ const PushNotificationsPage: React.FC = () => { const hasPermission = await ensurePermissions(); setHasPermission(hasPermission); await register(); - } + }; return ( diff --git a/src/pages/TextZoom.tsx b/src/pages/TextZoom.tsx index 3dae225..8630faa 100644 --- a/src/pages/TextZoom.tsx +++ b/src/pages/TextZoom.tsx @@ -36,8 +36,8 @@ const TextZoomPage: React.FC = () => { const getInitialZoom = async () => { const { value: level } = await TextZoom.get(); - setLevel(level.toString()); - } + setLevel(level.toString()); + }; const handleLevelInputChange = createEventTargetValueExtractor(setLevel);