Order management UI
Build and Push Lunchtime Images (Kaniko) / build-and-push (push) Successful in 1m30s
Build and Push Lunchtime Images (Kaniko) / build-and-push (push) Successful in 1m30s
This commit is contained in:
1 parent
6ae0361971
commit
1b1b0898ed
1 file changed
+47
-47
@@ -58,58 +58,58 @@ export default function ParticipantSubmissionSummary({
|
||||
];
|
||||
|
||||
return (
|
||||
<Flex vertical gap={8}>
|
||||
<Flex justify="space-between" align="center" wrap="wrap" gap={8}>
|
||||
<Flex justify="space-between" align="stretch" wrap="wrap" gap={8}>
|
||||
<Flex vertical gap={8} align="flex-start">
|
||||
<Text strong>
|
||||
<CheckCircleFilled style={{ color: token.colorSuccess }} /> Order submitted
|
||||
</Text>
|
||||
<Flex vertical gap={8} align="flex-end">
|
||||
<Flex gap={4} wrap="wrap" justify="flex-end">
|
||||
{statuses.map(({ label, done, hint, pending }) => (
|
||||
<Tooltip key={label} title={done ? hint : pending}>
|
||||
<Tag
|
||||
bordered={false}
|
||||
color={done ? "success" : "default"}
|
||||
icon={done ? <CheckOutlined /> : <ClockCircleOutlined />}
|
||||
style={{ marginInlineEnd: 0 }}
|
||||
>
|
||||
{label}
|
||||
</Tag>
|
||||
</Tooltip>
|
||||
))}
|
||||
</Flex>
|
||||
{onEdit && !isClosed && (
|
||||
<Button type="primary" icon={<EditOutlined />} onClick={onEdit}>
|
||||
Edit order
|
||||
</Button>
|
||||
)}
|
||||
</Flex>
|
||||
</Flex>
|
||||
<Tooltip title="Your submitted order">
|
||||
<Text code copyable>
|
||||
{savedOrderString}
|
||||
</Text>
|
||||
</Tooltip>
|
||||
<Space size={4} direction="vertical">
|
||||
{savedEstimatedTotal && (
|
||||
<Text type="secondary">
|
||||
<Tooltip title="Rough estimate based on configured item prices. Final amount may differ.">
|
||||
Estimated total: {savedEstimatedTotal}
|
||||
</Tooltip>
|
||||
{onHowToPay && !submission.paid && (
|
||||
<>
|
||||
{" · "}
|
||||
<Button type="link" size="small" onClick={onHowToPay} style={{ padding: 0, height: "auto" }}>
|
||||
How to pay?
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
<Tooltip title="Your submitted order">
|
||||
<Text code copyable>
|
||||
{savedOrderString}
|
||||
</Text>
|
||||
</Tooltip>
|
||||
<Space size={4} direction="vertical">
|
||||
{savedEstimatedTotal && (
|
||||
<Text type="secondary">
|
||||
<Tooltip title="Rough estimate based on configured item prices. Final amount may differ.">
|
||||
Estimated total: {savedEstimatedTotal}
|
||||
</Tooltip>
|
||||
{onHowToPay && !submission.paid && (
|
||||
<>
|
||||
{" · "}
|
||||
<Button type="link" size="small" onClick={onHowToPay} style={{ padding: 0, height: "auto" }}>
|
||||
How to pay?
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
</Text>
|
||||
)}
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
Updated {formatTimestamp(submission.updated_at)}
|
||||
</Text>
|
||||
</Space>
|
||||
</Flex>
|
||||
<Flex vertical justify="space-between" align="flex-end" gap={8}>
|
||||
<Flex gap={4} wrap="wrap" justify="flex-end">
|
||||
{statuses.map(({ label, done, hint, pending }) => (
|
||||
<Tooltip key={label} title={done ? hint : pending}>
|
||||
<Tag
|
||||
bordered={false}
|
||||
color={done ? "success" : "default"}
|
||||
icon={done ? <CheckOutlined /> : <ClockCircleOutlined />}
|
||||
style={{ marginInlineEnd: 0 }}
|
||||
>
|
||||
{label}
|
||||
</Tag>
|
||||
</Tooltip>
|
||||
))}
|
||||
</Flex>
|
||||
{onEdit && !isClosed && (
|
||||
<Button type="primary" icon={<EditOutlined />} onClick={onEdit}>
|
||||
Edit order
|
||||
</Button>
|
||||
)}
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
Updated {formatTimestamp(submission.updated_at)}
|
||||
</Text>
|
||||
</Space>
|
||||
</Flex>
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user