Skip to content

Commit 4770604

Browse files
committed
feat: move settings route top level
1 parent ecb9f3c commit 4770604

File tree

27 files changed

+37
-35
lines changed

27 files changed

+37
-35
lines changed

app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "ts-node/register"
22
import type { ExpoConfig, ConfigContext } from "expo/config"
33

4-
export const VERSION: string = "3.0.33"
4+
export const VERSION: string = "3.0.34"
55

66
export const APPLE_TEAM_ID: string = "7YTW5D2K7P"
77
export const IOS_APP_GROUP_ID: string = "group.io.filen.app"

app/(app)/home/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export const Home = memo(() => {
240240

241241
const openSettings = useCallback(() => {
242242
router.push({
243-
pathname: "/(app)/home/settings"
243+
pathname: "/settings"
244244
})
245245
}, [router])
246246

app/(app)/photos/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export const Photos = memo(() => {
335335
size="icon"
336336
onPress={() => {
337337
router.push({
338-
pathname: "/photos/settings"
338+
pathname: "/photosSettings"
339339
})
340340
}}
341341
>

app/_layout.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ export default function RootLayout() {
170170
name="selectTrackPlayerPlaylists"
171171
options={SCREEN_OPTIONS.modal}
172172
/>
173+
<Stack.Screen
174+
name="settings"
175+
options={SCREEN_OPTIONS.base}
176+
/>
177+
<Stack.Screen
178+
name="photosSettings"
179+
options={SCREEN_OPTIONS.base}
180+
/>
173181
</Stack>
174182
<Listeners />
175183
{isAuthed && (
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const Settings = memo(() => {
137137
const selectDriveItemsResponse = await driveService.selectDriveItems({
138138
type: "directory",
139139
max: 1,
140-
dismissHref: "/photos/settings"
140+
dismissHref: "/photosSettings"
141141
})
142142

143143
if (selectDriveItemsResponse.cancelled || selectDriveItemsResponse.items.length !== 1) {
@@ -236,7 +236,7 @@ export const Settings = memo(() => {
236236
),
237237
onPress: () => {
238238
routerPush({
239-
pathname: "/photos/settings/albums"
239+
pathname: "/photosSettings/albums"
240240
})
241241
}
242242
},
@@ -388,6 +388,7 @@ export const Settings = memo(() => {
388388
return (
389389
<RequireInternet>
390390
<SettingsComponent
391+
iosBackButtonTitle={translateMemoized("settings.index.back")}
391392
title={translateMemoized("photos.settings.index.title")}
392393
showSearchBar={false}
393394
items={items}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const Account = memo(() => {
189189

190190
const onPressPersonalInfo = useCallback(() => {
191191
router.push({
192-
pathname: "/(app)/home/settings/personal"
192+
pathname: "/settings/personal"
193193
})
194194
}, [router])
195195

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)