mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
span to styled component
This commit is contained in:
parent
bd54457fb6
commit
503ba7eaab
@ -17,6 +17,11 @@ import type { Props } from '../../common';
|
|||||||
|
|
||||||
import Row from '../../Row';
|
import Row from '../../Row';
|
||||||
|
|
||||||
|
const Text = styled.span`
|
||||||
|
font-size: ${FONT_SIZE.SMALLER};
|
||||||
|
color: ${colors.TEXT_SECONDARY};
|
||||||
|
`;
|
||||||
|
|
||||||
const RowAccountWrapper = styled.div`
|
const RowAccountWrapper = styled.div`
|
||||||
height: 64px;
|
height: 64px;
|
||||||
|
|
||||||
@ -24,10 +29,6 @@ const RowAccountWrapper = styled.div`
|
|||||||
color: ${colors.TEXT_PRIMARY};
|
color: ${colors.TEXT_PRIMARY};
|
||||||
|
|
||||||
border-top: 1px solid ${colors.DIVIDER};
|
border-top: 1px solid ${colors.DIVIDER};
|
||||||
span {
|
|
||||||
font-size: ${FONT_SIZE.SMALLER};
|
|
||||||
color: ${colors.TEXT_SECONDARY};
|
|
||||||
}
|
|
||||||
|
|
||||||
${props => props.isSelected && css`
|
${props => props.isSelected && css`
|
||||||
border-left: ${BORDER_WIDTH.SELECTED} solid ${colors.GREEN_PRIMARY};
|
border-left: ${BORDER_WIDTH.SELECTED} solid ${colors.GREEN_PRIMARY};
|
||||||
@ -53,9 +54,9 @@ const RowAccount = ({
|
|||||||
<Row column>
|
<Row column>
|
||||||
Account #{accountIndex + 1}
|
Account #{accountIndex + 1}
|
||||||
{balance ? (
|
{balance ? (
|
||||||
<span>{balance}</span>
|
<Text>{balance}</Text>
|
||||||
) : (
|
) : (
|
||||||
<span>Loading...</span>
|
<Text>Loading...</Text>
|
||||||
)}
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
</RowAccountWrapper>
|
</RowAccountWrapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user