From 8100fd7314c46cd3c9cacd87695eb8677e46f12f Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Sat, 17 Aug 2024 03:16:04 +0100 Subject: [PATCH] chore: run Prettier --- App.tsx | 10 +++++----- src/Generic.tsx | 2 +- src/lib/notifications/index.ts | 6 +++++- src/lib/notifications/permissions.ts | 28 ++++++++++++++-------------- 4 files changed, 25 insertions(+), 21 deletions(-) diff --git a/App.tsx b/App.tsx index a081c48c..33bc18b2 100644 --- a/App.tsx +++ b/App.tsx @@ -73,17 +73,17 @@ function checkLastVersion() { console.log(app.version, lastVersion); if (!lastVersion || lastVersion === '') { console.log( - `[APP] lastVersion is null (${lastVersion}), setting to app.version (${app.version})` + `[APP] lastVersion is null (${lastVersion}), setting to app.version (${app.version})`, ); app.settings.set('app.lastVersion', app.version); } else { app.version === lastVersion ? console.log( - `[APP] lastVersion (${lastVersion}) is equal to app.version (${app.version})` - ) + `[APP] lastVersion (${lastVersion}) is equal to app.version (${app.version})`, + ) : console.log( - `[APP] lastVersion (${lastVersion}) is different from app.version (${app.version})` - ); + `[APP] lastVersion (${lastVersion}) is different from app.version (${app.version})`, + ); } } diff --git a/src/Generic.tsx b/src/Generic.tsx index a7ec43b3..58f243bb 100644 --- a/src/Generic.tsx +++ b/src/Generic.tsx @@ -7,7 +7,7 @@ import {setLanguage} from '@rvmob-i18n/i18n'; import {languages} from '@rvmob-i18n/languages'; import {setTheme, themes} from '@rvmob/Theme'; import {DEFAULT_API_URL, LOADING_SCREEN_REMARKS} from '@rvmob/lib/consts'; -import { checkNotificationPerms } from '@rvmob/lib/notifications'; +import {checkNotificationPerms} from '@rvmob/lib/notifications'; import { CreateChannelModalProps, DeletableObject, diff --git a/src/lib/notifications/index.ts b/src/lib/notifications/index.ts index ba2a51db..90098161 100644 --- a/src/lib/notifications/index.ts +++ b/src/lib/notifications/index.ts @@ -1,2 +1,6 @@ -export {createChannel, sendNotifeeNotification, setUpNotifeeListener} from './notifee'; +export { + createChannel, + sendNotifeeNotification, + setUpNotifeeListener, +} from './notifee'; export {checkNotificationPerms} from './permissions'; diff --git a/src/lib/notifications/permissions.ts b/src/lib/notifications/permissions.ts index 5d385c08..e32f54ac 100644 --- a/src/lib/notifications/permissions.ts +++ b/src/lib/notifications/permissions.ts @@ -1,17 +1,17 @@ -import { PermissionsAndroid } from 'react-native'; +import {PermissionsAndroid} from 'react-native'; export function checkNotificationPerms() { - PermissionsAndroid.request( - PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS, - { - title: 'Allow RVMob Notifications', - message: - 'RVMob needs permission to send you message notifications. You can turn them off at any time.', - buttonNeutral: 'Maybe later', - buttonNegative: 'Nuh uh', - buttonPositive: 'Sure', - }, - ).then(result => { - console.log(`[SETTINGS] Permission request result: ${result}`); - }); + PermissionsAndroid.request( + PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS, + { + title: 'Allow RVMob Notifications', + message: + 'RVMob needs permission to send you message notifications. You can turn them off at any time.', + buttonNeutral: 'Maybe later', + buttonNegative: 'Nuh uh', + buttonPositive: 'Sure', + }, + ).then(result => { + console.log(`[SETTINGS] Permission request result: ${result}`); + }); }