diff --git a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx index d9e9b6e8..1828d809 100644 --- a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx +++ b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx @@ -2,6 +2,8 @@ import { RoomLikeRoomComposer } from '@nitrots/nitro-renderer'; import classNames from 'classnames'; import { FC, useCallback, useState } from 'react'; import { LocalizeText, RoomWidgetZoomToggleMessage } from '../../../../api'; +import { Base } from '../../../../common/Base'; +import { Column } from '../../../../common/Column'; import { NavigatorEvent } from '../../../../events'; import { ChatHistoryEvent } from '../../../../events/chat-history/ChatHistoryEvent'; import { dispatchUiEvent } from '../../../../hooks/events'; @@ -10,11 +12,9 @@ import { useRoomContext } from '../../context/RoomContext'; export const RoomToolsWidgetView: FC<{}> = props => { - const { widgetHandler = null } = useRoomContext(); - - const [ isExpended, setIsExpanded ] = useState(false); const [ isZoomedIn, setIsZoomedIn ] = useState(false); const [ isLiked, setIsLiked ] = useState(false); + const { widgetHandler = null } = useRoomContext(); const handleToolClick = useCallback((action: string) => { @@ -29,7 +29,6 @@ export const RoomToolsWidgetView: FC<{}> = props => return; case 'chat_history': dispatchUiEvent(new ChatHistoryEvent(ChatHistoryEvent.TOGGLE_CHAT_HISTORY)); - //setIsExpanded(false); close this ?? return; case 'like_room': if(isLiked) return; @@ -44,27 +43,11 @@ export const RoomToolsWidgetView: FC<{}> = props => }, [ isZoomedIn, isLiked, widgetHandler ]); return ( -