Fix: switch 'connect additional device' link to use goto (#126)
* Fix: switch 'connect additional device' link to use goto
This commit is contained in:
parent
e7584f167e
commit
1457d6b744
|
|
@ -1,4 +1,6 @@
|
|||
<script lang="ts">
|
||||
import { goto } from '$app/navigation'
|
||||
|
||||
import { sessionStore } from '../../stores'
|
||||
</script>
|
||||
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue