@@ -14,7 +14,13 @@ import { CanvasTooltip } from "components/CanvasTooltip.tsx";
1414import { areNeighbours , extractedNeighboringEmployeeProfileIds } from "components/canvas/utils/functions.tsx" ;
1515import { setCanvasPosition , setChairIdForManualAssignment } from "components/canvas/actions/actions.tsx" ;
1616import type { SeatAllocationResult } from "types/event.ts" ;
17- import { FullscreenExitOutlined , LeftOutlined , LoginOutlined , LogoutOutlined , RightOutlined } from "@ant-design/icons" ;
17+ import {
18+ FullscreenExitOutlined ,
19+ LoginOutlined ,
20+ LogoutOutlined ,
21+ MenuFoldOutlined ,
22+ MenuUnfoldOutlined ,
23+ } from "@ant-design/icons" ;
1824import Konva from "konva" ;
1925import { useAuth } from "../../contexts/AuthContext.tsx" ;
2026import toast from "react-hot-toast" ;
@@ -143,15 +149,13 @@ const SeatAllocationContent = ({
143149 state . elements
144150 ?. forEach ( ( e : ElementProperties ) => {
145151 if ( e . type === "chair" && chairProfileMap . has ( e . id ) ) {
146- ( e as Chair ) . assigneeProfileId = chairProfileMap . get ( e . id ) ! . id ;
147- ( e as Chair ) . assigneeName = getFullName ( chairProfileMap . get ( e . id ) ! ) ;
152+ ( e as Chair ) . assigneeProfile = { ...chairProfileMap . get ( e . id ) ! } ;
148153 ( e as Chair ) . belongsToVisitor = chairProfileMap . get ( e . id ) ! . isVisitor ;
149154 if ( ! ( e as Chair ) . attachedTo ) {
150155 toast . error ( "Some participants are assigned to chairs that are not linked to a table. It might cause inconsistencies. Please be aware." ) ;
151156 }
152157 } else if ( e . type === "chair" ) {
153- ( e as Chair ) . assigneeProfileId = undefined ;
154- ( e as Chair ) . assigneeName = undefined ;
158+ ( e as Chair ) . assigneeProfile = undefined ;
155159 ( e as Chair ) . belongsToVisitor = undefined ;
156160 emptyChairCount ++ ;
157161 }
@@ -243,8 +247,8 @@ const SeatAllocationContent = ({
243247 style = { { transition : "all 0.2s ease" } }
244248 title = { isCollapsed ? "Expand" : "Collapse" }
245249 >
246- { isCollapsed ? < LeftOutlined style = { { fontSize : "12px" } } /> :
247- < RightOutlined style = { { fontSize : "12px" } } /> }
250+ { isCollapsed ? < MenuFoldOutlined style = { { fontSize : "12px" } } /> :
251+ < MenuUnfoldOutlined style = { { fontSize : "12px" } } /> }
248252 </ Button >
249253 </ Space >
250254 </ div >
@@ -338,7 +342,7 @@ const SeatAllocationContent = ({
338342 ( getFullName ( item . profile ) . toLowerCase ( ) || "" ) . includes ( unallocatedSearch . toLowerCase ( ) ) ||
339343 ( item . profile . email ?. toLowerCase ( ) || "" ) . includes ( unallocatedSearch . toLowerCase ( ) ) ,
340344 ) , [ unallocated , unallocatedSearch ] ) }
341- pagination = { { pageSize : 5 , showLessItems : true } }
345+ pagination = { { defaultPageSize : 5 , showLessItems : true , showSizeChanger : true } }
342346 renderItem = { item => (
343347 < List . Item
344348 actions = { [
@@ -393,7 +397,7 @@ const SeatAllocationContent = ({
393397 />
394398 { /* List of employees who are assigned to any seat */ }
395399 < List
396- pagination = { { pageSize : 5 , showLessItems : true } }
400+ pagination = { { defaultPageSize : 5 , showLessItems : true , showSizeChanger : true } }
397401 dataSource = { useMemo ( ( ) =>
398402 allocated . filter ( item =>
399403 ( getFullName ( item . profile ) . toLowerCase ( ) || "" ) . includes ( allocatedSearch . toLowerCase ( ) ) ||
0 commit comments