Skip to content

Commit

Permalink
feat: dim text of expired nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryenguyen7411 committed Nov 14, 2023
1 parent fa6114d commit e2e77bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/scenes/Main/Metanodes/MetanodeList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,12 @@ export const MetanodeList = (props: Props) => {
<TextRoom>{node.version}</TextRoom>
</SizeL>
<div>
<TextRoom>{bondAmount}</TextRoom>{' '}
<TextRoom variant="label">({lockedPortion}%)</TextRoom>
<TextRoom>{bondAmount}</TextRoom> <TextRoom>({lockedPortion}%)</TextRoom>
</div>
<ColumnExpiry>
<Column>
<TextNowrap>{expireTime}</TextNowrap>
<TextNowrap variant="label">({getDiffDays(expireTimestamp)})</TextNowrap>
<TextNowrap>({getDiffDays(expireTimestamp)})</TextNowrap>
</Column>
</ColumnExpiry>
<SizeL>
Expand Down
4 changes: 4 additions & 0 deletions src/modules/scenes/Main/Metanodes/MetanodeList/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export const Row = styled.div<BgProps>`
: props.bg === MayChurnIn
? 'rgba(143, 231, 217, 0.2)'
: !props.bg && props.theme.pulsar.color.bg.hover};
color: ${(props) =>
props.bg === InactiveBondExpired || props.bg === Unreachable
? props.theme.pulsar.color.text.placeholder
: props.theme.pulsar.color.text.normal};
display: grid;
align-items: center;
grid-template-columns: ${nodeListGridTemplateColumnsFrameMobile};
Expand Down

0 comments on commit e2e77bf

Please sign in to comment.