Add route
This commit is contained in:
parent
69723305eb
commit
a2540cb0d0
1 changed files with 5 additions and 4 deletions
|
@ -67,9 +67,10 @@ const ChatPage: React.FC<IChatPage> = ({ chatId }) => {
|
|||
<ChatPageSidebar />
|
||||
</Stack>
|
||||
|
||||
<Stack className={classNames('col-span-9 sm:col-span-6 h-full overflow-hidden', {
|
||||
'hidden sm:block': !chat,
|
||||
})}
|
||||
<Stack
|
||||
className={classNames('col-span-9 sm:col-span-6 h-full overflow-hidden', {
|
||||
'hidden sm:block': !chat,
|
||||
})}
|
||||
>
|
||||
<Switch>
|
||||
<Route path='/chats/new'>
|
||||
|
@ -78,7 +79,7 @@ const ChatPage: React.FC<IChatPage> = ({ chatId }) => {
|
|||
<Route path='/chats/settings'>
|
||||
<ChatPageSettings />
|
||||
</Route>
|
||||
<Route>
|
||||
<Route path='/chats/:chatId?'>
|
||||
<ChatPageMain />
|
||||
</Route>
|
||||
</Switch>
|
||||
|
|
Loading…
Reference in a new issue