Skip to content

Commit

Permalink
standardized color of voting power displays and improved fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Apr 6, 2024
1 parent d8ac389 commit de97041
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ export const ProfileCardMemberInfo = ({
const { t } = useTranslation()

return votingPower.loading || votingPower.data > 0 ? (
<div className="secondary-text flex flex-row items-center justify-between">
<div className="body-text flex flex-row items-center justify-between">
<p>{t('title.votingPower')}</p>
<p
className={clsx(
'font-mono text-text-primary',
'font-mono text-text-brand-secondary',
votingPower.loading && 'animate-pulse'
)}
>
{votingPower.loading ? '...' : formatPercentOf100(votingPower.data)}
</p>
</div>
) : (
<p className={clsx(cantVoteOnProposal ? 'caption-text' : 'legend-text')}>
<p className={clsx(cantVoteOnProposal ? 'caption-text' : 'secondary-text')}>
{t('info.membershipDaoNotMemberInfo', {
daoName,
context: cantVoteOnProposal ? 'proposal' : 'dao',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const ProfileCardMemberInfoTokens = ({
'text-right font-mono',
loadingVotingPower.loading
? 'animate-pulse text-text-tertiary'
: 'text-text-primary'
: 'text-text-brand-secondary'
)}
>
{loadingVotingPower.loading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const ProfileCantVoteCard = ({
/>
</div>

<p className="font-mono text-text-interactive-disabled">0%</p>
<p className="font-mono text-text-brand-secondary">0%</p>
</div>

<div className="secondary-text mt-2 flex flex-row items-center justify-between">
Expand Down
2 changes: 1 addition & 1 deletion packages/stateless/components/profile/ProfileVoteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const ProfileVoteCard = ({
/>
</div>

<p className="font-mono text-text-primary">
<p className="font-mono text-text-brand-secondary">
{formatPercentOf100(votingPower)}
</p>
</div>
Expand Down

0 comments on commit de97041

Please sign in to comment.