Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions habitsync-ui/app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ export default function TabLayout() {
href: null,
}}
/>
<Tabs.Screen
name="habit/edit"
options={{
href: null,
}}
/>
<Tabs.Screen
name="habit/[habitUuid]"
options={{
href: null,
}}
/>
<Tabs.Screen
name="challenge/edit/[challengeId]"
options={{
Expand Down
11 changes: 11 additions & 0 deletions habitsync-ui/app/(tabs)/habit/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {Stack} from 'expo-router';
import React from 'react';

export const unstable_settings = {
initialRouteName: '[habitUuid]',
};

export default function HabitLayout() {
return <Stack screenOptions={{headerShown: false}}/>;
}

7 changes: 1 addition & 6 deletions habitsync-ui/app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
import {Redirect} from 'expo-router';
import React from 'react';

export default function Index() {
return <Redirect href="/(tabs)/habits"/>;
}
export {default} from './habits';
Loading