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 />
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue