Skip to content

Commit 7390566

Browse files
committed
Update AccountLink navigation to use newSettingsPath
Don’t use the outdated settings path anymore Changed the AccountLink.svelte component to import newSettingsPath from $lib/routes/routes.svelte and updated the navigation click handler to use this newSettingsPath function instead of the static '/settings/' path.
1 parent a16ea19 commit 7390566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/desktop/src/components/AccountLink.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import { goto } from '$app/navigation';
3+
import { newSettingsPath } from '$lib/routes/routes.svelte';
34
import { USER } from '$lib/user/user';
45
import { inject } from '@gitbutler/shared/context';
56
import { Icon } from '@gitbutler/ui';
@@ -18,7 +19,7 @@
1819
type="button"
1920
class="btn"
2021
class:pop
21-
onclick={async () => await goto('/settings/')}
22+
onclick={async () => goto(newSettingsPath())}
2223
class:collapsed={isNavCollapsed}
2324
>
2425
{#if !isNavCollapsed}

0 commit comments

Comments
 (0)