Browse Source

Remove `Updated:` label from timestamp component

This makes it more composable by not forcing the label onto the
user of the component.
fix-olivia-event-id
Thomas Eizinger 3 years ago
parent
commit
858c181ada
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 5
      frontend/src/components/CurrentPrice.tsx
  2. 2
      frontend/src/components/Timestamp.tsx
  3. 5
      frontend/src/components/Wallet.tsx

5
frontend/src/components/CurrentPrice.tsx

@ -35,7 +35,10 @@ export default function CurrentPrice(
{ask}
</HStack>
<Divider marginTop={2} marginBottom={2} />
{timestamp}
<HStack>
<Text align={"left"}>Updated:</Text>
{timestamp}
</HStack>
</Box>
);
}

2
frontend/src/components/Timestamp.tsx

@ -13,7 +13,7 @@ export default function Timestamp(
) {
return (
<Text>
Updated: {unixTimestampToDate(timestamp).toLocaleDateString("en-US", {
{unixTimestampToDate(timestamp).toLocaleDateString("en-US", {
year: "numeric",
month: "numeric",
day: "numeric",

5
frontend/src/components/Wallet.tsx

@ -44,7 +44,10 @@ export default function Wallet(
<Divider marginTop={2} marginBottom={2} />
{address}
<Divider marginTop={2} marginBottom={2} />
{timestamp}
<HStack>
<Text align={"left"}>Updated:</Text>
{timestamp}
</HStack>
</Box>
);
}

Loading…
Cancel
Save