From bb535b10edc470c19af34914af74c47ae1b4842a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 30 Aug 2022 13:16:00 -0500 Subject: [PATCH] Add ChatsPage for bigger layout --- app/soapbox/features/ui/index.tsx | 5 +++-- app/soapbox/pages/chats-page.tsx | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 app/soapbox/pages/chats-page.tsx diff --git a/app/soapbox/features/ui/index.tsx b/app/soapbox/features/ui/index.tsx index b136ebdb8..1328999fd 100644 --- a/app/soapbox/features/ui/index.tsx +++ b/app/soapbox/features/ui/index.tsx @@ -29,6 +29,7 @@ import ThumbNavigation from 'soapbox/components/thumb_navigation'; import { Layout } from 'soapbox/components/ui'; import { useAppSelector, useOwnAccount, useSoapboxConfig, useFeatures } from 'soapbox/hooks'; import AdminPage from 'soapbox/pages/admin_page'; +import ChatsPage from 'soapbox/pages/chats-page'; import DefaultPage from 'soapbox/pages/default_page'; // import GroupsPage from 'soapbox/pages/groups_page'; // import GroupPage from 'soapbox/pages/group_page'; @@ -265,8 +266,8 @@ const SwitchingColumnsArea: React.FC = ({ children }) => { {features.suggestions && } {features.profileDirectory && } - {features.chats && } - {features.chats && } + {features.chats && } + {features.chats && } diff --git a/app/soapbox/pages/chats-page.tsx b/app/soapbox/pages/chats-page.tsx new file mode 100644 index 000000000..b822f3d85 --- /dev/null +++ b/app/soapbox/pages/chats-page.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +/** Custom layout for chats on desktop. */ +const ChatsPage: React.FC = ({ children }) => { + return ( +
+ {children} +
+ ); +}; + +export default ChatsPage;