Skip to content

Commit

Permalink
web-wallet: Reword "Staking" header to "Stake"
Browse files Browse the repository at this point in the history
Resolves #3113
  • Loading branch information
nortonandreev committed Dec 4, 2024
1 parent 47de541 commit 9101187
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
2 changes: 2 additions & 0 deletions web-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Update Transactions list design [#1922]
- Reword "Staking" header to "Stake" [#3113]

### Removed

Expand Down Expand Up @@ -420,6 +421,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#3081]: https://github.com/dusk-network/rusk/issues/3081
[#3098]: https://github.com/dusk-network/rusk/issues/3098
[#3099]: https://github.com/dusk-network/rusk/issues/3099
[#3113]: https://github.com/dusk-network/rusk/issues/3113

<!-- VERSIONS -->

Expand Down
2 changes: 1 addition & 1 deletion web-wallet/src/lib/contracts/contract-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default [
},
{
enabled: import.meta.env.VITE_FEATURE_STAKE === "true",
id: "staking",
id: "stake",
label: "Stake",
operations: [
{
Expand Down
12 changes: 4 additions & 8 deletions web-wallet/src/routes/(app)/dashboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
mdiDatabaseOutline,
mdiListBoxOutline,
mdiSwapHorizontal,
mdiSwapVertical,
mdiSync,
} from "@mdi/js";
import { AnchorButton, Icon } from "$lib/dusk/components";
Expand All @@ -30,21 +29,18 @@
case "allocate":
icons = [{ path: mdiSync }];
break;
case "migrate":
icons = [{ path: mdiSwapHorizontal }];
break;
case "receive":
icons = [{ path: mdiArrowBottomLeft }];
break;
case "send":
icons = [{ path: mdiArrowTopRight }];
break;
case "staking":
case "stake":
icons = [{ path: mdiDatabaseOutline }];
break;
case "transfer":
icons = [{ path: mdiSwapVertical }];
break;
case "migrate":
icons = [{ path: mdiSwapHorizontal }];
break;
default:
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ exports[`Dashboard > should render a card when there is an error getting transac
<a
class="dusk-anchor dusk-anchor--on-surface dashboard-nav__item"
href="staking"
href="stake"
role="menuitem"
tabindex="0"
>
Expand Down Expand Up @@ -306,7 +306,7 @@ exports[`Dashboard > should render the dashboard page with the transactions afte
<a
class="dusk-anchor dusk-anchor--on-surface dashboard-nav__item"
href="staking"
href="stake"
role="menuitem"
tabindex="0"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{#if import.meta.env.VITE_FEATURE_STAKE || false}
<IconHeadingCard
gap="medium"
heading="Staking"
heading="Stake"
icons={[mdiDatabaseOutline]}
reverse
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`Staking > should render the staking page 1`] = `
<h3
class="h4"
>
Staking
Stake
</h3>
<div
Expand Down

0 comments on commit 9101187

Please sign in to comment.