mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-12 01:37:40 +02:00
Merge pull request #229 from R0m1k3/1.1
Show more daily orders and deliveries on the calendar
This commit is contained in:
1 file changed
+1
-1
@@ -97,7 +97,7 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' |
|
||||
// Composant pour gérer l'overflow avec popover
|
||||
function DayItemsContainer({ dayOrders, dayDeliveries, onItemClick }: { dayOrders: any[], dayDeliveries: any[], onItemClick: (item: any, type: 'order' | 'delivery') => void }) {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const MAX_VISIBLE_ITEMS = 2;
|
||||
const MAX_VISIBLE_ITEMS = 4;
|
||||
const totalItems = dayOrders.length + dayDeliveries.length;
|
||||
|
||||
if (totalItems === 0) return null;
|
||||
|
||||
Reference in new issue
Block a user