From a269440456f7e5a92fde2871a219b9bb4e09b7d1 Mon Sep 17 00:00:00 2001
From: Andrea Scartabelli
Date: Fri, 15 Nov 2024 16:18:32 +0100
Subject: [PATCH] web-wallet: Broken link in the stake warning
Resolves #2990
---
web-wallet/CHANGELOG.md | 2 ++
web-wallet/src/lib/components/Stake/Stake.svelte | 4 ++--
.../lib/components/__tests__/__snapshots__/Stake.spec.js.snap | 2 +-
web-wallet/src/lib/constants/documentationLinks.js | 1 +
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/web-wallet/CHANGELOG.md b/web-wallet/CHANGELOG.md
index ae5df4687e..ddfa5e24aa 100644
--- a/web-wallet/CHANGELOG.md
+++ b/web-wallet/CHANGELOG.md
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Suggested words in the Mnemonic (Authenticate) are accessible using Tab [#2879]
+- Broken link in the stake warning [#2990]
## [0.7.0] - 2024-11-11
@@ -339,6 +340,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#2888]: https://github.com/dusk-network/rusk/issues/2888
[#2920]: https://github.com/dusk-network/rusk/issues/2920
[#2932]: https://github.com/dusk-network/rusk/issues/2932
+[#2990]: https://github.com/dusk-network/rusk/issues/2990
diff --git a/web-wallet/src/lib/components/Stake/Stake.svelte b/web-wallet/src/lib/components/Stake/Stake.svelte
index b77001fef5..f101b87327 100644
--- a/web-wallet/src/lib/components/Stake/Stake.svelte
+++ b/web-wallet/src/lib/components/Stake/Stake.svelte
@@ -9,6 +9,7 @@
mdiDatabaseOutline,
} from "@mdi/js";
+ import { DOCUMENTATION_LINKS } from "$lib/constants";
import { areValidGasSettings, deductLuxFeeFrom } from "$lib/contracts";
import { duskToLux, luxToDusk } from "$lib/dusk/currency";
import { logo } from "$lib/dusk/icons";
@@ -226,8 +227,7 @@
class="staking-warning__step-node-setup-link"
rel="noopener noreferrer"
target="_blank"
- href="https://docs.dusk.network/getting-started/node-setup/overview"
- >HEREHERE, and that I will lose funds if I have not done so correctly.
diff --git a/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap b/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap
index 2243a0be47..0cd27b8029 100644
--- a/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap
+++ b/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap
@@ -449,7 +449,7 @@ exports[`Stake > should render the Stake notice 1`] = `
I understand that I have set up a node properly, as described
diff --git a/web-wallet/src/lib/constants/documentationLinks.js b/web-wallet/src/lib/constants/documentationLinks.js
index edd4bc8b20..19c64c4519 100644
--- a/web-wallet/src/lib/constants/documentationLinks.js
+++ b/web-wallet/src/lib/constants/documentationLinks.js
@@ -1,3 +1,4 @@
export const DOCUMENTATION_LINKS = {
RESTORE_BLOCK_HEIGHT: "https://docs.dusk.network/learn/guides/restore-height",
+ RUN_A_PROVISIONER: "https://docs.dusk.network/operator/02-provisioner/",
};