From 093734851409c8a211db998ed23c58e2ccb03db4 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Sun, 14 Nov 2021 14:38:01 -0600 Subject: [PATCH] chore: lint --- src/screens/Compose/ComponentView.styled.ts | 2 +- src/screens/Settings/Sections/CompanySection.tsx | 5 +++-- src/screens/SideMenu/MainSideMenu.tsx | 10 +++++----- src/style/theme_service.ts | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/screens/Compose/ComponentView.styled.ts b/src/screens/Compose/ComponentView.styled.ts index 93d7987d..e05ab4b8 100644 --- a/src/screens/Compose/ComponentView.styled.ts +++ b/src/screens/Compose/ComponentView.styled.ts @@ -1,4 +1,4 @@ -import { ICON_LOCK, ICON_ALERT } from '@Style/icons'; +import { ICON_ALERT, ICON_LOCK } from '@Style/icons'; import { ThemeService } from '@Style/theme_service'; import { SafeAreaView } from 'react-native-safe-area-context'; import Icon from 'react-native-vector-icons/Ionicons'; diff --git a/src/screens/Settings/Sections/CompanySection.tsx b/src/screens/Settings/Sections/CompanySection.tsx index c8e45fac..2e05f706 100644 --- a/src/screens/Settings/Sections/CompanySection.tsx +++ b/src/screens/Settings/Sections/CompanySection.tsx @@ -9,8 +9,9 @@ import { Platform, Share } from 'react-native'; import { ContentContainer, Label } from './CompanySection.styled'; const URLS = { - feedback: `mailto:help@standardnotes.com?subject=${Platform.OS === 'android' ? 'Android' : 'iOS' - } app feedback (v${ApplicationState.version})`, + feedback: `mailto:help@standardnotes.com?subject=${ + Platform.OS === 'android' ? 'Android' : 'iOS' + } app feedback (v${ApplicationState.version})`, learn_more: 'https://standardnotes.com', privacy: 'https://standardnotes.com/privacy', help: 'https://standardnotes.com/help', diff --git a/src/screens/SideMenu/MainSideMenu.tsx b/src/screens/SideMenu/MainSideMenu.tsx index 1a4757b1..e0bbe77e 100644 --- a/src/screens/SideMenu/MainSideMenu.tsx +++ b/src/screens/SideMenu/MainSideMenu.tsx @@ -262,11 +262,11 @@ export const MainSideMenu = React.memo(({ drawerRef }: Props) => { const outOfSyncPressed = async () => { const confirmed = await application!.alertService!.confirm( "We've detected that the data in the current application session may " + - 'not match the data on the server. This can happen due to poor' + - 'network conditions, or if a large note fails to download on your ' + - 'device. To resolve this issue, we recommend first creating a backup ' + - 'of your data in the Settings screen, then signing out of your account ' + - 'and signing back in.', + 'not match the data on the server. This can happen due to poor' + + 'network conditions, or if a large note fails to download on your ' + + 'device. To resolve this issue, we recommend first creating a backup ' + + 'of your data in the Settings screen, then signing out of your account ' + + 'and signing back in.', 'Potentially Out of Sync', 'Open Settings', undefined diff --git a/src/style/theme_service.ts b/src/style/theme_service.ts index 3dbd7717..b4457fe2 100644 --- a/src/style/theme_service.ts +++ b/src/style/theme_service.ts @@ -435,7 +435,7 @@ export class ThemeService { return new Promise(async resolve => { try { - const response = await fetch(url, { + const response = await fetch(url!, { method: 'GET', }); const data = await response.text();