@@ -41,8 +41,6 @@ import { avatarUrlForUser } from "../../../Avatar";
4141import EventTile from "../rooms/EventTile" ;
4242import SearchBox from "../../structures/SearchBox" ;
4343import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar" ;
44- import { Alignment } from "../elements/Tooltip" ;
45- import AccessibleTooltipButton from "../elements/AccessibleTooltipButton" ;
4644import AutoHideScrollbar from "../../structures/AutoHideScrollbar" ;
4745import { StaticNotificationState } from "../../../stores/notifications/StaticNotificationState" ;
4846import NotificationBadge from "../rooms/NotificationBadge" ;
@@ -54,7 +52,7 @@ import EntityTile from "../rooms/EntityTile";
5452import BaseAvatar from "../avatars/BaseAvatar" ;
5553import { Action } from "../../../dispatcher/actions" ;
5654import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload" ;
57- import { ButtonEvent } from "../elements/AccessibleButton" ;
55+ import AccessibleButton , { ButtonEvent } from "../elements/AccessibleButton" ;
5856import { isLocationEvent } from "../../../utils/EventUtils" ;
5957import { isSelfLocation , locationEventGeoUri } from "../../../utils/location" ;
6058import { RoomContextDetails } from "../rooms/RoomContextDetails" ;
@@ -159,32 +157,32 @@ const Entry: React.FC<IEntryProps<any>> = ({ room, type, content, matrixClient:
159157 onFocus = { onFocus }
160158 id = { id }
161159 >
162- < AccessibleTooltipButton
160+ < AccessibleButton
163161 className = "mx_ForwardList_roomButton"
164162 onClick = { jumpToRoom }
165163 title = { _t ( "forward|open_room" ) }
166- alignment = { Alignment . Top }
164+ placement = "top"
167165 tabIndex = { isActive ? 0 : - 1 }
168166 >
169167 < DecoratedRoomAvatar room = { room } size = "32px" tooltipProps = { { tabIndex : isActive ? 0 : - 1 } } />
170168 < span className = "mx_ForwardList_entry_name" id = { `${ id } _name` } >
171169 { room . name }
172170 </ span >
173171 < RoomContextDetails component = "span" className = "mx_ForwardList_entry_detail" room = { room } />
174- </ AccessibleTooltipButton >
175- < AccessibleTooltipButton
172+ </ AccessibleButton >
173+ < AccessibleButton
176174 kind = { sendState === SendState . Failed ? "danger_outline" : "primary_outline" }
177175 className = { `mx_ForwardList_sendButton ${ className } ` }
178176 onClick = { send }
179177 disabled = { disabled }
180178 title = { title }
181- alignment = { Alignment . Top }
179+ placement = "top"
182180 tabIndex = { isActive ? 0 : - 1 }
183181 id = { `${ id } _send` }
184182 >
185183 < div className = "mx_ForwardList_sendLabel" > { _t ( "forward|send_label" ) } </ div >
186184 { icon }
187- </ AccessibleTooltipButton >
185+ </ AccessibleButton >
188186 </ div >
189187 ) ;
190188} ;
0 commit comments