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

* Fix: switch 'connect additional device' link to use goto
This commit is contained in:
avivash 2023-04-27 10:19:07 -07:00 committed by GitHub
parent e7584f167e
commit 1457d6b744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation'
import { sessionStore } from '../../stores'
</script>
@ -24,8 +26,8 @@
devices as theyd 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>

View File

@ -1,4 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation'
import { sessionStore } from '$src/stores'
</script>
@ -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>