diff --git a/src/components/planner/schedules/SlotBoxes.tsx b/src/components/planner/schedules/SlotBoxes.tsx index d3413997..4d1d4c50 100644 --- a/src/components/planner/schedules/SlotBoxes.tsx +++ b/src/components/planner/schedules/SlotBoxes.tsx @@ -13,7 +13,7 @@ const SlotBoxes = ({ slots, classes, hiddenLessonsTypes }: Props) => { return ( <> { - filteredSlots.map((slot: SlotInfo) => { + filteredSlots.map((slot: SlotInfo, idx: number) => { const classDescriptor = classes.find((classDescriptor) => ( classDescriptor.classInfo.slots.filter((otherSlot) => otherSlot.id === slot.id).length > 0 )) @@ -21,7 +21,7 @@ const SlotBoxes = ({ slots, classes, hiddenLessonsTypes }: Props) => { if (!classDescriptor) return <>; return { )} {currentView === SESSION && currentSession && ( - void } -const CollabSession = ({ session, onExitSession, onUpdateUser }: Props) => { +const CollabSessionModal = ({ session, onExitSession, onUpdateUser }: Props) => { const { toast } = useToast(); const [copied, setCopied] = useState(false); const [lastValidUser, setLastValidUser] = useState(session.currentUser); @@ -130,4 +130,4 @@ const CollabSession = ({ session, onExitSession, onUpdateUser }: Props) => { ); }; -export default CollabSession; +export default CollabSessionModal;