Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Wallet/Tx.js
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | const SentLabel = styled.span` | ||||
font-weight: bold; | font-weight: bold; | ||||
color: ${props => props.theme.secondary} !important; | color: ${props => props.theme.secondary} !important; | ||||
`; | `; | ||||
const ReceivedLabel = styled.span` | const ReceivedLabel = styled.span` | ||||
font-weight: bold; | font-weight: bold; | ||||
color: ${props => props.theme.primary} !important; | color: ${props => props.theme.primary} !important; | ||||
`; | `; | ||||
const CashtabMessageLabel = styled.span` | |||||
font-weight: bold; | |||||
color: ${props => props.theme.primary} !important; | |||||
white-space: nowrap; | |||||
`; | |||||
const MessageLabel = styled.span` | const MessageLabel = styled.span` | ||||
font-weight: bold; | font-weight: bold; | ||||
color: ${props => props.theme.secondary} !important; | color: ${props => props.theme.secondary} !important; | ||||
`; | `; | ||||
const TxIcon = styled.div` | const TxIcon = styled.div` | ||||
svg { | svg { | ||||
width: 32px; | width: 32px; | ||||
height: 32px; | height: 32px; | ||||
▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | return ( | ||||
)} | )} | ||||
<br /> | <br /> | ||||
{txDate} | {txDate} | ||||
{data.opReturnMessage && ( | {data.opReturnMessage && ( | ||||
<> | <> | ||||
<br /> | <br /> | ||||
<br /> | <br /> | ||||
{data.isCashtabMessage ? ( | |||||
<CashtabMessageLabel> | |||||
Cashtab Message | |||||
</CashtabMessageLabel> | |||||
) : ( | |||||
<MessageLabel>Message</MessageLabel> | <MessageLabel>Message</MessageLabel> | ||||
)} | |||||
<br /> | <br /> | ||||
<OpReturnType> | <OpReturnType> | ||||
{data.opReturnMessage | {data.opReturnMessage | ||||
? Buffer.from( | ? Buffer.from( | ||||
data.opReturnMessage, | data.opReturnMessage, | ||||
).toString() | ).toString() | ||||
: ''} | : ''} | ||||
</OpReturnType> | </OpReturnType> | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |