diff --git a/web/vite/src/OrderSets.tsx b/web/vite/src/OrderSets.tsx index 6096ca3..d437ca0 100644 --- a/web/vite/src/OrderSets.tsx +++ b/web/vite/src/OrderSets.tsx @@ -8,6 +8,7 @@ import { Box, RingProgress, Alert, + Grid, } from "@mantine/core"; import { IconAlertTriangle } from "@tabler/icons-react"; import { TimeValue } from "@mantine/dates"; @@ -119,7 +120,7 @@ export const OrderSets: React.FC = ({ } }} > - + {orderSets ? orderSets.map( ({ @@ -133,95 +134,96 @@ export const OrderSets: React.FC = ({ probability, punishment_pool_name, }) => ( - - - {name} - {scheduled ? ( - <> - - - Scheduled: - - {time.split(",").map((time) => ( -
- -
- ))} -
- - {weekdays ? ( - Weekdays - ) : null} - {weekends ? ( - Weekends - ) : null} - - {probability * 100}% - - } - sections={[ - { color: "cyan", value: probability * 100 }, - ]} - /> - - - ) : null} - {punishment_pool_name ? ( - - Punishments: {punishment_pool_name} - - ) : null} - - {orders.length > 0 ? ( - ({ - name, - value: weight, - color: - COLORS_ROTATION[idx % COLORS_ROTATION.length], - }))} - tooltipDataSource="segment" - /> + + + + {name} + {scheduled ? ( + <> + + + Scheduled: + + {time.split(",").map((time) => ( +
+ +
+ ))} +
+ + {weekdays ? ( + Weekdays + ) : null} + {weekends ? ( + Weekends + ) : null} + + {probability * 100}% + + } + sections={[ + { color: "cyan", value: probability * 100 }, + ]} + /> + + ) : null} - handleDelete(id)} - > - - - - - Edit - + {punishment_pool_name ? ( + + Punishments: {punishment_pool_name} + + ) : null} + + {orders.length > 0 ? ( + ({ + name, + value: weight, + color: + COLORS_ROTATION[idx % COLORS_ROTATION.length], + }))} + tooltipDataSource="segment" + /> + ) : null} + handleDelete(id)} + > + + + + + Edit + +
-
-
+ + ), ) : null} -
+