From 61ea37ff818ca64cec8e10b3a423ecd22dcf0141 Mon Sep 17 00:00:00 2001 From: Ansh Nanda Date: Sun, 14 May 2023 18:37:18 -0700 Subject: [PATCH] renamed page to savedfeeds --- src/Navigation.tsx | 4 ++-- src/lib/routes/types.ts | 2 +- src/routes.ts | 2 +- src/view/screens/{CustomAlgorithms.tsx => SavedFeeds.tsx} | 6 ++---- 4 files changed, 6 insertions(+), 8 deletions(-) rename src/view/screens/{CustomAlgorithms.tsx => SavedFeeds.tsx} (95%) diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 8b6e1b4539..26dc9f7ad9 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -52,7 +52,7 @@ import {AppPasswords} from 'view/screens/AppPasswords' import {MutedAccounts} from 'view/screens/MutedAccounts' import {BlockedAccounts} from 'view/screens/BlockedAccounts' import {getRoutingInstrumentation} from 'lib/sentry' -import CustomAlgorithms from 'view/screens/CustomAlgorithms' +import {SavedFeeds} from './view/screens/SavedFeeds' const navigationRef = createNavigationContainerRef() @@ -92,7 +92,7 @@ function commonScreens(Stack: typeof HomeTab) { /> - + diff --git a/src/lib/routes/types.ts b/src/lib/routes/types.ts index b914956405..5a4126f6a8 100644 --- a/src/lib/routes/types.ts +++ b/src/lib/routes/types.ts @@ -20,7 +20,7 @@ export type CommonNavigatorParams = { CommunityGuidelines: undefined CopyrightPolicy: undefined AppPasswords: undefined - CustomAlgorithms: undefined + SavedFeeds: undefined MutedAccounts: undefined BlockedAccounts: undefined } diff --git a/src/routes.ts b/src/routes.ts index c1b441984d..b510f66f6b 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -14,7 +14,7 @@ export const router = new Router({ Debug: '/sys/debug', Log: '/sys/log', AppPasswords: '/settings/app-passwords', - CustomAlgorithms: '/settings/custom-algorithms', + SavedFeeds: '/settings/saved-feeds', MutedAccounts: '/settings/muted-accounts', BlockedAccounts: '/settings/blocked-accounts', Support: '/support', diff --git a/src/view/screens/CustomAlgorithms.tsx b/src/view/screens/SavedFeeds.tsx similarity index 95% rename from src/view/screens/CustomAlgorithms.tsx rename to src/view/screens/SavedFeeds.tsx index b838660dfd..7b04a64741 100644 --- a/src/view/screens/CustomAlgorithms.tsx +++ b/src/view/screens/SavedFeeds.tsx @@ -22,9 +22,9 @@ import {Text} from 'view/com/util/text/Text' import {isDesktopWeb} from 'platform/detection' import {s} from 'lib/styles' -type Props = NativeStackScreenProps +type Props = NativeStackScreenProps -const CustomAlgorithms = withAuthRequired( +export const SavedFeeds = withAuthRequired( observer(({}: Props) => { const pal = usePalette('default') const rootStore = useStores() @@ -89,8 +89,6 @@ const CustomAlgorithms = withAuthRequired( }), ) -export default CustomAlgorithms - const styles = StyleSheet.create({ footer: { paddingVertical: 20,