From c3579c5b148a91b2593e46ebc5a7f7fea43c0fe1 Mon Sep 17 00:00:00 2001 From: ostoaleonardo Date: Tue, 23 Jul 2024 14:50:29 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20Remove=20unused=20const?= =?UTF-8?q?ants=20and=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/drive.js | 26 -------------------------- src/constants/googleSignIn.js | 4 ---- src/constants/routes.js | 4 +--- src/constants/storageKeys.js | 4 ---- src/screens/SignIn/Shade.js | 14 -------------- src/screens/SignIn/Stripe.js | 13 ------------- src/screens/SignIn/index.js | 2 -- src/screens/index.js | 6 ------ 8 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 src/constants/drive.js delete mode 100644 src/constants/googleSignIn.js delete mode 100644 src/screens/SignIn/Shade.js delete mode 100644 src/screens/SignIn/Stripe.js delete mode 100644 src/screens/SignIn/index.js diff --git a/src/constants/drive.js b/src/constants/drive.js deleted file mode 100644 index f873726..0000000 --- a/src/constants/drive.js +++ /dev/null @@ -1,26 +0,0 @@ -const GOOGLE_APIS = { - FILES: 'https://www.googleapis.com/drive/v3/files', - UPLOAD: 'https://www.googleapis.com/upload/drive/v3/files', - CHANGES: 'https://www.googleapis.com/drive/v3/changes' -} - -const UPLOAD_TYPES = { - SIMPLE: 'media', - MULTIPART: 'multipart' -} - -const MIME_TYPES = { - JSON: 'application/json', -} - -const BOUNDARY = '\r\n--foo_bar_baz' -const DELIMITER = BOUNDARY + '\r\n' -const CLOSE_DELIMITER = BOUNDARY + '--' - -export { - GOOGLE_APIS, - UPLOAD_TYPES, - MIME_TYPES, - DELIMITER, - CLOSE_DELIMITER -} diff --git a/src/constants/googleSignIn.js b/src/constants/googleSignIn.js deleted file mode 100644 index b1affb4..0000000 --- a/src/constants/googleSignIn.js +++ /dev/null @@ -1,4 +0,0 @@ -export const SCOPES = [ - 'https://www.googleapis.com/auth/drive.file', - 'https://www.googleapis.com/auth/drive.appdata' -] diff --git a/src/constants/routes.js b/src/constants/routes.js index 3bde140..c2a1836 100644 --- a/src/constants/routes.js +++ b/src/constants/routes.js @@ -1,5 +1,4 @@ export const ROUTES = { - SIGN_IN: '/signin', HOME: '/home', CATEGORIES: '/categories', ADD_NOTE: '(notes)', @@ -7,6 +6,5 @@ export const ROUTES = { UNLOCK_NOTE: '/unlock/', EDIT_NOTE: '/edit/', SETTINGS: '(settings)', - THEME: '/theme', - PROFILE: '/profile' + THEME: '/theme' } diff --git a/src/constants/storageKeys.js b/src/constants/storageKeys.js index 78996b9..6b046de 100644 --- a/src/constants/storageKeys.js +++ b/src/constants/storageKeys.js @@ -2,9 +2,5 @@ export const STORAGE_KEYS = { NOTES: 'notes', CATEGORIES: 'categories', THEME: 'theme', - CATEGORIES_FILE_ID: 'categoriesFileId', - NOTES_ID_BACKUP: 'notesIdBackup', - NOTES_TO_SYNC: 'notesToSync', - PAGE_TOKEN: 'pageToken', USER_LANGUAGE: 'userLanguage' } diff --git a/src/screens/SignIn/Shade.js b/src/screens/SignIn/Shade.js deleted file mode 100644 index c04e714..0000000 --- a/src/screens/SignIn/Shade.js +++ /dev/null @@ -1,14 +0,0 @@ -import { StyleSheet, View } from 'react-native' - -export function Shade({ color }) { - const styles = StyleSheet.create({ - container: { - width: '100%', - height: 96, - borderRadius: 16, - backgroundColor: color, - } - }) - - return -} diff --git a/src/screens/SignIn/Stripe.js b/src/screens/SignIn/Stripe.js deleted file mode 100644 index 78c60c1..0000000 --- a/src/screens/SignIn/Stripe.js +++ /dev/null @@ -1,13 +0,0 @@ -import { StyleSheet, View } from 'react-native' - -export function Stripe({ color }) { - const styles = StyleSheet.create({ - stripe: { - flex: 1, - height: 8, - backgroundColor: color, - } - }) - - return -} diff --git a/src/screens/SignIn/index.js b/src/screens/SignIn/index.js deleted file mode 100644 index c31bad2..0000000 --- a/src/screens/SignIn/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { Shade } from './Shade' -export { Stripe } from './Stripe' diff --git a/src/screens/index.js b/src/screens/index.js index 3415f00..d8c2526 100644 --- a/src/screens/index.js +++ b/src/screens/index.js @@ -1,9 +1,3 @@ -// Sign in screen components -export { - Shade, - Stripe -} from './SignIn' - // Home screen components export { FilterCarousel,