Skip to content

Commit

Permalink
chore(mobile): [Transaction] refactor new-record route to transaction…
Browse files Browse the repository at this point in the history
…/new-record
  • Loading branch information
Quốc Khánh committed Jul 14, 2024
1 parent 9edf6ac commit d25e4d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/mobile/app/(app)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function AuthenticatedLayout() {
}}
/>
<Stack.Screen
name="new-record"
name="transaction/new-record"
options={{
presentation: 'modal',
headerShown: false,
Expand Down
File renamed without changes.
6 changes: 5 additions & 1 deletion apps/mobile/components/common/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export function Toolbar() {
<Sparkles className="w-5 h-5 text-muted-foreground" />
</View>
</TouchableOpacity>
<Link href="/new-record" asChild onPress={Haptics.selectionAsync}>
<Link
href="/transaction/new-record"
asChild
onPress={Haptics.selectionAsync}
>
<Button size="icon" className="h-11 w-11">
<PlusIcon className="size-6 text-primary-foreground" />
</Button>
Expand Down

0 comments on commit d25e4d9

Please sign in to comment.