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
+24
-24
@@ -58,33 +58,11 @@ export default function ParticipantSubmissionSummary({
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex vertical gap={8}>
|
<Flex justify="space-between" align="stretch" wrap="wrap" gap={8}>
|
||||||
<Flex justify="space-between" align="center" wrap="wrap" gap={8}>
|
<Flex vertical gap={8} align="flex-start">
|
||||||
<Text strong>
|
<Text strong>
|
||||||
<CheckCircleFilled style={{ color: token.colorSuccess }} /> Order submitted
|
<CheckCircleFilled style={{ color: token.colorSuccess }} /> Order submitted
|
||||||
</Text>
|
</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">
|
<Tooltip title="Your submitted order">
|
||||||
<Text code copyable>
|
<Text code copyable>
|
||||||
{savedOrderString}
|
{savedOrderString}
|
||||||
@@ -111,5 +89,27 @@ export default function ParticipantSubmissionSummary({
|
|||||||
</Text>
|
</Text>
|
||||||
</Space>
|
</Space>
|
||||||
</Flex>
|
</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>
|
||||||
|
)}
|
||||||
|
</Flex>
|
||||||
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user