@@ -108,7 +108,7 @@ interface IProps {
108108 onVisibilityChange ?( ) : void ;
109109}
110110
111- const RoomListHeader : React . FC < IProps > = ( { onVisibilityChange } ) => {
111+ const LegacyRoomListHeader : React . FC < IProps > = ( { onVisibilityChange } ) => {
112112 const cli = useContext ( MatrixClientContext ) ;
113113 const [ mainMenuDisplayed , mainMenuHandle , openMainMenu , closeMainMenu ] = useContextMenu < HTMLDivElement > ( ) ;
114114 const [ plusMenuDisplayed , plusMenuHandle , openPlusMenu , closePlusMenu ] = useContextMenu < HTMLDivElement > ( ) ;
@@ -178,7 +178,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
178178 inviteOption = (
179179 < IconizedContextMenuOption
180180 label = { _t ( "action|invite" ) }
181- iconClassName = "mx_RoomListHeader_iconInvite "
181+ iconClassName = "mx_LegacyRoomListHeader_iconInvite "
182182 onClick = { ( e ) => {
183183 e . preventDefault ( ) ;
184184 e . stopPropagation ( ) ;
@@ -194,7 +194,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
194194 newRoomOptions = (
195195 < >
196196 < IconizedContextMenuOption
197- iconClassName = "mx_RoomListHeader_iconNewRoom "
197+ iconClassName = "mx_LegacyRoomListHeader_iconNewRoom "
198198 label = { _t ( "action|new_room" ) }
199199 onClick = { ( e ) => {
200200 e . preventDefault ( ) ;
@@ -206,7 +206,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
206206 />
207207 { videoRoomsEnabled && (
208208 < IconizedContextMenuOption
209- iconClassName = "mx_RoomListHeader_iconNewVideoRoom "
209+ iconClassName = "mx_LegacyRoomListHeader_iconNewVideoRoom "
210210 label = { _t ( "action|new_video_room" ) }
211211 onClick = { ( e ) => {
212212 e . preventDefault ( ) ;
@@ -236,7 +236,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
236236 { newRoomOptions }
237237 < IconizedContextMenuOption
238238 label = { _t ( "action|explore_rooms" ) }
239- iconClassName = "mx_RoomListHeader_iconExplore "
239+ iconClassName = "mx_LegacyRoomListHeader_iconExplore "
240240 onClick = { ( e ) => {
241241 e . preventDefault ( ) ;
242242 e . stopPropagation ( ) ;
@@ -251,7 +251,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
251251 />
252252 < IconizedContextMenuOption
253253 label = { _t ( "action|add_existing_room" ) }
254- iconClassName = "mx_RoomListHeader_iconPlus "
254+ iconClassName = "mx_LegacyRoomListHeader_iconPlus "
255255 onClick = { ( e ) => {
256256 e . preventDefault ( ) ;
257257 e . stopPropagation ( ) ;
@@ -264,7 +264,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
264264 { canCreateSpaces && (
265265 < IconizedContextMenuOption
266266 label = { _t ( "room_list|add_space_label" ) }
267- iconClassName = "mx_RoomListHeader_iconPlus "
267+ iconClassName = "mx_LegacyRoomListHeader_iconPlus "
268268 onClick = { ( e ) => {
269269 e . preventDefault ( ) ;
270270 e . stopPropagation ( ) ;
@@ -289,7 +289,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
289289 < >
290290 < IconizedContextMenuOption
291291 label = { _t ( "action|start_new_chat" ) }
292- iconClassName = "mx_RoomListHeader_iconStartChat "
292+ iconClassName = "mx_LegacyRoomListHeader_iconStartChat "
293293 onClick = { ( e ) => {
294294 e . preventDefault ( ) ;
295295 e . stopPropagation ( ) ;
@@ -300,7 +300,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
300300 />
301301 < IconizedContextMenuOption
302302 label = { _t ( "action|new_room" ) }
303- iconClassName = "mx_RoomListHeader_iconNewRoom "
303+ iconClassName = "mx_LegacyRoomListHeader_iconNewRoom "
304304 onClick = { ( e ) => {
305305 e . preventDefault ( ) ;
306306 e . stopPropagation ( ) ;
@@ -312,7 +312,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
312312 { videoRoomsEnabled && (
313313 < IconizedContextMenuOption
314314 label = { _t ( "action|new_video_room" ) }
315- iconClassName = "mx_RoomListHeader_iconNewVideoRoom "
315+ iconClassName = "mx_LegacyRoomListHeader_iconNewVideoRoom "
316316 onClick = { ( e ) => {
317317 e . preventDefault ( ) ;
318318 e . stopPropagation ( ) ;
@@ -333,7 +333,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
333333 joinRoomOpt = (
334334 < IconizedContextMenuOption
335335 label = { _t ( "room_list|join_public_room_label" ) }
336- iconClassName = "mx_RoomListHeader_iconExplore "
336+ iconClassName = "mx_LegacyRoomListHeader_iconExplore "
337337 onClick = { ( e ) => {
338338 e . preventDefault ( ) ;
339339 e . stopPropagation ( ) ;
@@ -378,13 +378,13 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
378378 } )
379379 . join ( "\n" ) ;
380380
381- let contextMenuButton : JSX . Element = < div className = "mx_RoomListHeader_contextLessTitle " > { title } </ div > ;
381+ let contextMenuButton : JSX . Element = < div className = "mx_LegacyRoomListHeader_contextLessTitle " > { title } </ div > ;
382382 if ( canShowMainMenu ) {
383383 const commonProps = {
384384 ref : mainMenuHandle ,
385385 onClick : openMainMenu ,
386386 isExpanded : mainMenuDisplayed ,
387- className : "mx_RoomListHeader_contextMenuButton " ,
387+ className : "mx_LegacyRoomListHeader_contextMenuButton " ,
388388 children : title ,
389389 } ;
390390
@@ -401,7 +401,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
401401 }
402402
403403 return (
404- < aside className = "mx_RoomListHeader " aria-label = { _t ( "room|context_menu|title" ) } >
404+ < aside className = "mx_LegacyRoomListHeader " aria-label = { _t ( "room|context_menu|title" ) } >
405405 { contextMenuButton }
406406 { pendingActionSummary ? (
407407 < Tooltip label = { pendingActionSummary } isTriggerInteractive = { false } >
@@ -413,7 +413,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
413413 ref = { plusMenuHandle }
414414 onClick = { openPlusMenu }
415415 isExpanded = { plusMenuDisplayed }
416- className = "mx_RoomListHeader_plusButton "
416+ className = "mx_LegacyRoomListHeader_plusButton "
417417 title = { _t ( "action|add" ) }
418418 />
419419 ) }
@@ -423,4 +423,4 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
423423 ) ;
424424} ;
425425
426- export default RoomListHeader ;
426+ export default LegacyRoomListHeader ;
0 commit comments