diff options
author | Ansh Nanda <anshnanda10@gmail.com> | 2023-05-14 18:37:18 -0700 |
---|---|---|
committer | Ansh Nanda <anshnanda10@gmail.com> | 2023-05-14 18:37:18 -0700 |
commit | 61ea37ff818ca64cec8e10b3a423ecd22dcf0141 (patch) | |
tree | 284040cd34558efd715433a40c42be94699d27da | |
parent | 6105314f15448a965ef93044c58ab50ff6616bb4 (diff) | |
download | voidsky-61ea37ff818ca64cec8e10b3a423ecd22dcf0141.tar.zst |
renamed page to savedfeeds
-rw-r--r-- | src/Navigation.tsx | 4 | ||||
-rw-r--r-- | src/lib/routes/types.ts | 2 | ||||
-rw-r--r-- | src/routes.ts | 2 | ||||
-rw-r--r-- | src/view/screens/SavedFeeds.tsx (renamed from src/view/screens/CustomAlgorithms.tsx) | 6 |
4 files changed, 6 insertions, 8 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 8b6e1b453..26dc9f7ad 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<AllNavigatorParams>() @@ -92,7 +92,7 @@ function commonScreens(Stack: typeof HomeTab) { /> <Stack.Screen name="CopyrightPolicy" component={CopyrightPolicyScreen} /> <Stack.Screen name="AppPasswords" component={AppPasswords} /> - <Stack.Screen name="CustomAlgorithms" component={CustomAlgorithms} /> + <Stack.Screen name="SavedFeeds" component={SavedFeeds} /> <Stack.Screen name="MutedAccounts" component={MutedAccounts} /> <Stack.Screen name="BlockedAccounts" component={BlockedAccounts} /> </> diff --git a/src/lib/routes/types.ts b/src/lib/routes/types.ts index b91495640..5a4126f6a 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 c1b441984..b510f66f6 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 index b838660df..7b04a6474 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<CommonNavigatorParams, 'CustomAlgorithms'> +type Props = NativeStackScreenProps<CommonNavigatorParams, 'SavedFeeds'> -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, |