Skip to content

Commit

Permalink
fix: use event for back button in header
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Sep 10, 2024
1 parent 6b07c36 commit 883eaa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/[[lang]]/(protected)/[id]/verify/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
}
</script>

<d-header back-button backFunction={() => goto('/home')}>{m.VERIFICATION_QR()}</d-header>
<d-header back-button on:backButtonClick={() => goto('/home')}>{m.VERIFICATION_QR()}</d-header>
<ion-content fullscreen class="ion-padding">
<div class="flex flex-col justify-center gap-8 text-center">
<d-text size="xl">Ask holders to scan this QR using their Wallet</d-text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
</script>

<d-header back-button backFunction={back}>Verification</d-header>
<d-header back-button on:backButtonClick={back}>Verification</d-header>
<ion-content class="ion-padding">
<d-feedback {...feedback} />
<div class="flex w-full flex-row items-start justify-around">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/[[lang]]/(protected)/user-settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
let name = form.fields.name?.value;
</script>

<d-header back-button backFunction={() => window.history.back()}>User Settings</d-header>
<d-header back-button on:backButtonClick={() => window.history.back()}>User Settings</d-header>
<d-loading {loading}> </d-loading>

<div class="ion-padding flex w-full flex-col items-center gap-6">
Expand Down

0 comments on commit 883eaa5

Please sign in to comment.