diff --git a/src/frontend/src/components/views/HomeOrdersTable.tsx b/src/frontend/src/components/views/HomeOrdersTable.tsx index bf643b9..00cd64d 100644 --- a/src/frontend/src/components/views/HomeOrdersTable.tsx +++ b/src/frontend/src/components/views/HomeOrdersTable.tsx @@ -92,36 +92,52 @@ export default function HomeOrdersTable({ const isClosed = !!item.closed; const closedStr = isClosed ? " Closed" : "Open"; - const dateStr = - item.created_at - ? new Date(item.created_at).toLocaleString() - : "Unknown creation time"; + const dateStr = item.created_at + ? new Date(item.created_at).toLocaleString() + : "Unknown creation time"; return ( - + {item.title || item.id} - {item.is_owner ? Owner : null} - {item.is_owner && item.has_unpaid_submissions ? ( - Open payments - ) : null} - {state === "paid" ? Paid : null} - {state === "unpaid" ? ( - Unpaid - ) : null} - {state === "pending" ? Pending : null} + + {item.is_owner ? Owner : null} + {item.is_owner && item.has_unpaid_submissions ? ( + Open payments + ) : null} + {state === "paid" ? Paid : null} + {state === "unpaid" ? ( + Unpaid + ) : null} + {state === "pending" ? ( + Pending + ) : null} + - {{closedStr}}{" • "} - {{dateStr}} + { + + {closedStr} + + } + {" • "} + { + + {dateStr} + + } {item.is_participant && formatted && ( <> {" • "} - - {formatted} - + {formatted} )}