Order Sets - UI tweaks
This commit is contained in:
parent
71185df40f
commit
f321099af6
1 changed files with 21 additions and 27 deletions
|
|
@ -1,12 +1,4 @@
|
|||
import {
|
||||
Container,
|
||||
Title,
|
||||
Card,
|
||||
Text,
|
||||
Button,
|
||||
Flex,
|
||||
Badge,
|
||||
} from "@mantine/core";
|
||||
import { Container, Title, Card, Text, Box, Flex, Badge } from "@mantine/core";
|
||||
import { TimeValue } from "@mantine/dates";
|
||||
import { IconPencil, IconPlus, IconTrash } from "@tabler/icons-react";
|
||||
import React from "react";
|
||||
|
|
@ -60,7 +52,7 @@ export const SubOrderSets: React.FC = () => {
|
|||
bg="gray.2"
|
||||
w="400px"
|
||||
>
|
||||
<Flex direction="column" gap="md">
|
||||
<Flex direction="column" gap="md" h="100%">
|
||||
<Title order={4}>{name}</Title>
|
||||
{scheduled ? (
|
||||
<Flex gap="md" align="center">
|
||||
|
|
@ -71,23 +63,25 @@ export const SubOrderSets: React.FC = () => {
|
|||
{weekends ? <Badge color="blue">Weekends</Badge> : null}
|
||||
</Flex>
|
||||
) : null}
|
||||
<Text mb="md">Orders: {orders.length}</Text>
|
||||
</Flex>
|
||||
<Flex gap="md" justify="end">
|
||||
<ConfirmDialogButton
|
||||
buttonColor="red"
|
||||
buttonText="Delete"
|
||||
text={`Are you sure you want to delete ${name}?`}
|
||||
onConfirm={() => handleDelete(id)}
|
||||
>
|
||||
<IconTrash />
|
||||
</ConfirmDialogButton>
|
||||
<NavigateButton
|
||||
to={`/dashboard/subs/${sub_username}/${id}`}
|
||||
>
|
||||
<IconPencil style={{ marginRight: "0.5rem" }} />
|
||||
Edit
|
||||
</NavigateButton>
|
||||
<Text mb="md" flex={1}>
|
||||
Orders: {orders.length}
|
||||
</Text>
|
||||
<Flex gap="md" justify="end">
|
||||
<ConfirmDialogButton
|
||||
buttonColor="red"
|
||||
buttonText="Delete"
|
||||
text={`Are you sure you want to delete ${name}?`}
|
||||
onConfirm={() => handleDelete(id)}
|
||||
>
|
||||
<IconTrash />
|
||||
</ConfirmDialogButton>
|
||||
<NavigateButton
|
||||
to={`/dashboard/subs/${sub_username}/${id}`}
|
||||
>
|
||||
<IconPencil style={{ marginRight: "0.5rem" }} />
|
||||
Edit
|
||||
</NavigateButton>
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Card>
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue