Skip to content

Commit 5229e39

Browse files
committed
Fix(web): Updated styling for timestamp
1 parent 75d5019 commit 5229e39

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web/src/components/EvidenceCard.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ const DesktopText = styled.span`
9696
)}
9797
`;
9898

99+
const Timestamp = styled.p`
100+
color: #BECCE5;
101+
`;
102+
99103
const MobileText = styled.span`
100104
${landscapeStyle(
101105
() => css`
@@ -138,11 +142,11 @@ const EvidenceCard: React.FC<IEvidenceCard> = ({ evidence, sender, index, timest
138142
<Identicon size="24" string={sender} />
139143
<p>{shortenAddress(sender)}</p>
140144
</AccountContainer>
141-
<p>{new Date(parseInt(timestamp) * 1000).toLocaleDateString(undefined, {
145+
<Timestamp>{new Date(parseInt(timestamp) * 1000).toLocaleDateString('en-US', {
142146
year: 'numeric',
143147
month: 'long',
144148
day: 'numeric',
145-
})}</p>
149+
})}</Timestamp>
146150
{data && typeof data.fileURI !== "undefined" && (
147151
<StyledA href={getIpfsUrl(data.fileURI)} target="_blank" rel="noreferrer">
148152
<AttachmentIcon />

0 commit comments

Comments
 (0)