Add route

This commit is contained in:
Chewbacca 2022-11-03 13:33:33 -04:00
parent 69723305eb
commit a2540cb0d0

View file

@ -67,9 +67,10 @@ const ChatPage: React.FC<IChatPage> = ({ chatId }) => {
<ChatPageSidebar /> <ChatPageSidebar />
</Stack> </Stack>
<Stack className={classNames('col-span-9 sm:col-span-6 h-full overflow-hidden', { <Stack
'hidden sm:block': !chat, className={classNames('col-span-9 sm:col-span-6 h-full overflow-hidden', {
})} 'hidden sm:block': !chat,
})}
> >
<Switch> <Switch>
<Route path='/chats/new'> <Route path='/chats/new'>
@ -78,7 +79,7 @@ const ChatPage: React.FC<IChatPage> = ({ chatId }) => {
<Route path='/chats/settings'> <Route path='/chats/settings'>
<ChatPageSettings /> <ChatPageSettings />
</Route> </Route>
<Route> <Route path='/chats/:chatId?'>
<ChatPageMain /> <ChatPageMain />
</Route> </Route>
</Switch> </Switch>