Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: switch 'connect additional device' link to use goto #126

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 4 additions & 2 deletions src/components/home/Authed.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation'

import { sessionStore } from '../../stores'
</script>

Expand All @@ -24,8 +26,8 @@
devices as they’d like. For recoverability, we recommend they always
connect at least two.
</p>
<a class="btn btn-primary" href="/delegate-account">
<button class="btn btn-primary" on:click={() => goto('/delegate-account')}>
Connect an additional device
</a>
</button>
</div>
</div>
6 changes: 4 additions & 2 deletions src/components/settings/ConnectedDevices.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation'

import { sessionStore } from '$src/stores'
</script>

Expand All @@ -9,7 +11,7 @@
{:else}
<p>You have no other connected devices.</p>
{/if}
<a class="btn btn-outline" href="/delegate-account">
<button class="btn btn-outline" on:click={() => goto('/delegate-account')}>
Connect an additional device
</a>
</button>
</div>