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
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
3 changed files with
9 additions and
3 deletions
-
frontend/src/components/CurrentPrice.tsx
-
frontend/src/components/Timestamp.tsx
-
frontend/src/components/Wallet.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> |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
@ -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", |
|
|
|
|
|
@ -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> |
|
|
|
); |
|
|
|
} |
|
|
|