frontend changes: change shift order display, added config map
This commit is contained in:
@@ -7,6 +7,8 @@ export default function DayColumn({
|
||||
isToday,
|
||||
activeShifts = new Set(),
|
||||
shifts = {},
|
||||
nextDayShift1 = [],
|
||||
nextDayShift1Active = false,
|
||||
showShift2 = false,
|
||||
windowLookup = new Map(),
|
||||
onWindowSelect,
|
||||
@@ -39,14 +41,6 @@ export default function DayColumn({
|
||||
|
||||
{/* Shifts */}
|
||||
<div className="flex flex-col flex-1 px-0.5 py-1">
|
||||
<ShiftSlot
|
||||
label="12AM–9AM"
|
||||
tests={shifts.shift1}
|
||||
visible={true}
|
||||
active={activeShifts.has(1)}
|
||||
windowDetails={getWindowForShift(1)}
|
||||
onWindowSelect={onWindowSelect}
|
||||
/>
|
||||
<ShiftSlot
|
||||
label="9AM–5PM"
|
||||
tests={shifts.shift2}
|
||||
@@ -63,6 +57,14 @@ export default function DayColumn({
|
||||
windowDetails={getWindowForShift(3)}
|
||||
onWindowSelect={onWindowSelect}
|
||||
/>
|
||||
<ShiftSlot
|
||||
label="12AM–9AM (next day)"
|
||||
tests={nextDayShift1}
|
||||
visible={true}
|
||||
active={nextDayShift1Active}
|
||||
windowDetails={null}
|
||||
onWindowSelect={onWindowSelect}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user