Skip to content

Commit 71e86d3

Browse files
committed
fix(app): use btn instead
1 parent 62a14ad commit 71e86d3

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

app2/src/routes/udrop/claim/step/Step6.svelte

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script lang="ts">
2-
import { goto } from "$app/navigation"
32
import Button from "$lib/components/ui/Button.svelte"
43
import { dashboard } from "$lib/dashboard/stores/user.svelte"
54
import { Option } from "effect"
@@ -24,17 +23,6 @@ function handleViewTransaction() {
2423
onSome: (hash) => window.open(`https://etherscan.io/tx/${hash}`, "_blank"),
2524
})
2625
}
27-
28-
function handleStake() {
29-
goto("/stake")
30-
}
31-
32-
function handleUniswap() {
33-
// Direct link to the Union/WETH pool on Uniswap
34-
const uniswapPoolUrl =
35-
"https://app.uniswap.org/explore/pools/ethereum/0x0801481ba598d86e221a5ff0ccb02c97d5b0fbd803c662c66af604aa35119fe0"
36-
window.open(uniswapPoolUrl, "_blank")
37-
}
3826
</script>
3927

4028
<StepLayout>
@@ -79,7 +67,7 @@ function handleUniswap() {
7967
<Button
8068
variant="primary"
8169
class="flex items-center justify-center gap-3 w-full"
82-
onclick={handleStake}
70+
href="/stake"
8371
>
8472
<svg
8573
class="w-4 h-4"
@@ -100,7 +88,9 @@ function handleUniswap() {
10088
<Button
10189
variant="secondary"
10290
class="flex items-center justify-center gap-3 w-full"
103-
onclick={handleUniswap}
91+
href="https://app.uniswap.org/explore/pools/ethereum/0x0801481ba598d86e221a5ff0ccb02c97d5b0fbd803c662c66af604aa35119fe0"
92+
target="_blank"
93+
rel="noopener noreferrer"
10494
>
10595
<svg
10696
class="w-4 h-4"

0 commit comments

Comments
 (0)