From 7d8c579290f65258e7a16379a80c5caab9981d78 Mon Sep 17 00:00:00 2001 From: michalsmiarowski Date: Wed, 10 Mar 2021 14:48:17 +0100 Subject: [PATCH 01/10] Remove the progress bar Remove the progress bar that displays how many KEEP tokens in available. --- .../dashboard/src/components/DelegateStakeForm.jsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/solidity/dashboard/src/components/DelegateStakeForm.jsx b/solidity/dashboard/src/components/DelegateStakeForm.jsx index 937903195c..98aaad1c72 100644 --- a/solidity/dashboard/src/components/DelegateStakeForm.jsx +++ b/solidity/dashboard/src/components/DelegateStakeForm.jsx @@ -131,17 +131,6 @@ const TokensAmountField = ({ } /> - - -
{displayAmount(availableToStake)} KEEP available
From 01a576461fd94e8c88ce7f5b6824df98db7c2668 Mon Sep 17 00:00:00 2001 From: michalsmiarowski Date: Thu, 11 Mar 2021 10:39:04 +0100 Subject: [PATCH 02/10] Available to stake label style Changing style of "available to stake" label based on Figma. --- solidity/dashboard/src/components/DelegateStakeForm.jsx | 4 ++-- solidity/dashboard/src/css/typography.less | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/solidity/dashboard/src/components/DelegateStakeForm.jsx b/solidity/dashboard/src/components/DelegateStakeForm.jsx index 98aaad1c72..f861f6e984 100644 --- a/solidity/dashboard/src/components/DelegateStakeForm.jsx +++ b/solidity/dashboard/src/components/DelegateStakeForm.jsx @@ -131,8 +131,8 @@ const TokensAmountField = ({ } /> -
- {displayAmount(availableToStake)} KEEP available +
+ {displayAmount(availableToStake)} available to stake
diff --git a/solidity/dashboard/src/css/typography.less b/solidity/dashboard/src/css/typography.less index 2e820faf8a..30fa83b1af 100644 --- a/solidity/dashboard/src/css/typography.less +++ b/solidity/dashboard/src/css/typography.less @@ -224,6 +224,13 @@ label, .text-label { font-size: 0.5rem; line-height: 0.75rem; letter-spacing: 0.05rem; + + &--green-theme { + color: @color-green; + font-size: 0.75rem; + font-weight: 500; + line-height: 1.1rem; + } } &-instruction { From c3740192590dae04e9ea40851764528400ebaf42 Mon Sep 17 00:00:00 2001 From: michalsmiarowski Date: Thu, 11 Mar 2021 10:58:55 +0100 Subject: [PATCH 03/10] Style MIN STAKE info label Add new style to MIN STAKE info label and change the class/prop name instruction-text => additional-info-text. --- .../dashboard/src/components/DelegateStakeForm.jsx | 4 +--- solidity/dashboard/src/components/FormInput.jsx | 8 ++++---- solidity/dashboard/src/css/delegate-stake-form.less | 4 ++-- solidity/dashboard/src/css/forms.less | 13 +++++++++---- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/solidity/dashboard/src/components/DelegateStakeForm.jsx b/solidity/dashboard/src/components/DelegateStakeForm.jsx index f861f6e984..b37d18fb04 100644 --- a/solidity/dashboard/src/components/DelegateStakeForm.jsx +++ b/solidity/dashboard/src/components/DelegateStakeForm.jsx @@ -123,9 +123,7 @@ const TokensAmountField = ({ normalize={normalizeAmount} format={formatFormAmount} placeholder="0" - instructionText={`The minimum stake is ${displayAmount( - minStake - )} KEEP`} + additionalInfoText={`MIN STAKE ${displayAmount(minStake)} KEEP`} leftIcon={} inputAddon={ diff --git a/solidity/dashboard/src/components/FormInput.jsx b/solidity/dashboard/src/components/FormInput.jsx index c6bb19df00..4689baf1fe 100644 --- a/solidity/dashboard/src/components/FormInput.jsx +++ b/solidity/dashboard/src/components/FormInput.jsx @@ -14,7 +14,7 @@ const FormInput = ({ format, normalize, tooltipText, - instructionText, + additionalInfoText, leftIcon, inputAddon, ...props @@ -39,9 +39,9 @@ const FormInput = ({