From 7464d1e54fcefba7f0953dc6020feb0b24db31db Mon Sep 17 00:00:00 2001 From: jahooma Date: Thu, 16 Dec 2021 16:17:43 -0600 Subject: [PATCH] Align description buttons right. Switch to 12 hour format time --- web/components/contract-overview.tsx | 34 +++++++++++++++------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/web/components/contract-overview.tsx b/web/components/contract-overview.tsx index 0ab43dd5..824d364d 100644 --- a/web/components/contract-overview.tsx +++ b/web/components/contract-overview.tsx @@ -21,7 +21,7 @@ function ContractDescription(props: { }) { const { contract, isCreator } = props const [editing, setEditing] = useState(false) - const editStatement = () => `${dayjs().format('MMM D, H:mma')}: ` + const editStatement = () => `${dayjs().format('MMM D, h:mma')}: ` const [description, setDescription] = useState(editStatement()) // Append the new description (after a newline) @@ -42,7 +42,7 @@ function ContractDescription(props: { (editing ? (
- - + /> + + ) : ( - + + + ))} )