Show open/closed state in the order overview header
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d7296336e3
commit
f4f708e3ff
1 file changed
+2
@@ -25,6 +25,7 @@ type Order = {
|
||||
created_at?: string | null;
|
||||
creator_user_id?: string | null;
|
||||
creator_email?: string | null;
|
||||
closed?: boolean;
|
||||
};
|
||||
|
||||
function formatTimestamp(value: string | null | undefined): string {
|
||||
@@ -108,6 +109,7 @@ export default function ReadOnlyOrderOverviewCard({
|
||||
{order.title}
|
||||
<Typography.Text type="secondary" style={{ fontSize: 12, fontWeight: "normal" }}>
|
||||
by {creatorLabel} ({formatTimestamp(order.created_at)})
|
||||
{order.closed !== undefined && ` · ${order.closed ? "Closed" : "Open"}`}
|
||||
</Typography.Text>
|
||||
|
||||
</Flex>
|
||||
|
||||
Reference in new issue
Block a user