-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Balance Module: Update latest movement message when not effective #355
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ import ANJIcon from '../../assets/IconANJ.svg' | |
import lockIcon from '../../assets/IconLock.svg' | ||
|
||
const Balance = React.memo(function Balance({ | ||
label, | ||
amount, | ||
loading, | ||
actions, | ||
mainIcon, | ||
activity, | ||
distribution, | ||
label, | ||
loading, | ||
mainIcon, | ||
mainIconBackground, | ||
}) { | ||
const theme = useTheme() | ||
|
@@ -76,11 +76,11 @@ const Balance = React.memo(function Balance({ | |
</div> | ||
<div> | ||
<span | ||
css={` | ||
${textStyle('body2')} | ||
color: ${theme.surfaceContentSecondary}; | ||
display:block; | ||
`} | ||
css={` | ||
${textStyle('body2')}; | ||
color: ${theme.surfaceContentSecondary}; | ||
display: block; | ||
`} | ||
> | ||
{label} | ||
</span> | ||
|
@@ -99,10 +99,10 @@ const Balance = React.memo(function Balance({ | |
</div> | ||
<span | ||
css={` | ||
${textStyle('body4')} | ||
color: ${theme.surfaceContentSecondary}; | ||
display:block; | ||
`} | ||
${textStyle('body4')}; | ||
color: ${theme.surfaceContentSecondary}; | ||
display: block; | ||
`} | ||
> | ||
$ {convertedAmount} | ||
</span> | ||
|
@@ -218,7 +218,9 @@ const LatestActivity = ({ activity, distribution }) => { | |
color: ${theme.content}; | ||
`} | ||
> | ||
{convertToString(activity.type, activity.direction)} | ||
{activity.isImmediate && !activity.isEffective | ||
? 'Effective next term' | ||
: convertToString(activity.type, activity.direction)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if we should have a tooltip for the I can still see a user being confused about their "immediate" active balance vs. their "effective" active balance at the moment, as we only show one value in the module. |
||
</span> | ||
</div> | ||
{distribution && <ANJLockedHelp distribution={distribution} />} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should have different text for the
Inactive
part of the balance module to clarify where the inactive portion has moved (to be withdrawal or activated).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm yeah perhaps doesn't make sense to show the
effective next term
message there since is not something that is relevant for that balance and we can just return theActivated
.