From 858c181adab65d17c7f2d2ab00b39c5271fcef33 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 29 Sep 2021 17:56:20 +1000 Subject: [PATCH] Remove `Updated:` label from timestamp component This makes it more composable by not forcing the label onto the user of the component. --- frontend/src/components/CurrentPrice.tsx | 5 ++++- frontend/src/components/Timestamp.tsx | 2 +- frontend/src/components/Wallet.tsx | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/CurrentPrice.tsx b/frontend/src/components/CurrentPrice.tsx index fa94833..9f5ede7 100644 --- a/frontend/src/components/CurrentPrice.tsx +++ b/frontend/src/components/CurrentPrice.tsx @@ -35,7 +35,10 @@ export default function CurrentPrice( {ask} - {timestamp} + + Updated: + {timestamp} + ); } diff --git a/frontend/src/components/Timestamp.tsx b/frontend/src/components/Timestamp.tsx index a3709aa..cf46e31 100644 --- a/frontend/src/components/Timestamp.tsx +++ b/frontend/src/components/Timestamp.tsx @@ -13,7 +13,7 @@ export default function Timestamp( ) { return ( - Updated: {unixTimestampToDate(timestamp).toLocaleDateString("en-US", { + {unixTimestampToDate(timestamp).toLocaleDateString("en-US", { year: "numeric", month: "numeric", day: "numeric", diff --git a/frontend/src/components/Wallet.tsx b/frontend/src/components/Wallet.tsx index 209beba..e62a59a 100644 --- a/frontend/src/components/Wallet.tsx +++ b/frontend/src/components/Wallet.tsx @@ -44,7 +44,10 @@ export default function Wallet( {address} - {timestamp} + + Updated: + {timestamp} + ); }