From 9dc1a0caec913236dc74c94315a8fc44b7c6d78b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 19 Sep 2022 15:12:18 -0500 Subject: [PATCH] ChatPage: allow selecting a chat on mobile --- .../chats/components/chat-page/chat-page.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/soapbox/features/chats/components/chat-page/chat-page.tsx b/app/soapbox/features/chats/components/chat-page/chat-page.tsx index 7284309fc..9924b8a5a 100644 --- a/app/soapbox/features/chats/components/chat-page/chat-page.tsx +++ b/app/soapbox/features/chats/components/chat-page/chat-page.tsx @@ -1,21 +1,30 @@ +import classNames from 'clsx'; import React from 'react'; import { Card, Stack } from 'soapbox/components/ui'; +import { useChatContext } from 'soapbox/contexts/chat-context'; import ChatPageMain from './components/chat-page-main'; import ChatPageSidebar from './components/chat-page-sidebar'; const ChatPage = () => { + const { chat } = useChatContext(); + return (
- +