{
+ if (portalRef == null && node != null) {
+ setPortalRef(node);
+ }
+ }}
+ >
+
+ {orderSets
+ ? orderSets.map(
+ ({
+ id,
+ name,
+ scheduled,
+ orders,
+ time,
+ weekdays,
+ weekends,
+ 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"
/>
-
- >
- ) : null}
-
- Orders: {orders.length}
-
- {punishment_pool_name
- ? `Punishments: ${punishment_pool_name}`
- : null}
-
-
- handleDelete(id)}
- >
-
-
-
-
- Edit
-
+ ) : null}
+ handleDelete(id)}
+ >
+
+
+
+
+ Edit
+
+
-
-
- ),
- )
- : null}
-
-
-
- New
-
-
+
+ ),
+ )
+ : null}
+
+
+