-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3123 from dusk-network/feature-2981
web-wallet: Add notice for stake maturity
- Loading branch information
Showing
18 changed files
with
177 additions
and
723 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
web-wallet/src/lib/components/StakeMaturityInfo/StakeMaturityInfo.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<script> | ||
/** @type {bigint} */ | ||
export let eligibility; | ||
/** @type {boolean} */ | ||
export let isParticipatingInConsensus; | ||
/** @type {(value: number | bigint) => string} */ | ||
export let formatter; | ||
</script> | ||
|
||
<div class="stake-maturity-info"> | ||
{#if isParticipatingInConsensus} | ||
<p class="stake-maturity-info__heading">Actively participating...</p> | ||
<p class="stake-maturity-info__body"> | ||
Participation in the consensus began at block #{formatter(eligibility)}. | ||
</p> | ||
{:else} | ||
<p class="stake-maturity-info__heading">Stake maturity in progress...</p> | ||
<p class="stake-maturity-info__body"> | ||
Participation in the consensus will start at block #{formatter( | ||
eligibility | ||
)}. | ||
</p> | ||
{/if} | ||
</div> | ||
|
||
<style lang="postcss"> | ||
.stake-maturity-info { | ||
width: 100%; | ||
padding: 0 0.75em; | ||
padding-top: 0.625em; | ||
&__heading { | ||
font-weight: 500; | ||
line-height: 21px; | ||
letter-spacing: -1; | ||
} | ||
&__body { | ||
font-size: 0.875rem; | ||
line-height: 1.5; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.