mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
Fix search not working on mobile.
This commit is contained in:
parent
24050a8e05
commit
d72adacb24
1 changed files with 8 additions and 9 deletions
|
@ -22,19 +22,18 @@ export default function RightSidebar() {
|
|||
[setSidebar],
|
||||
);
|
||||
|
||||
if (sidebar === "search") {
|
||||
return <SearchSidebar close={close} />;
|
||||
}
|
||||
const content =
|
||||
sidebar === "search" ? (
|
||||
<SearchSidebar close={close} />
|
||||
) : (
|
||||
<MemberSidebar />
|
||||
);
|
||||
|
||||
return (
|
||||
<SidebarBase>
|
||||
<Switch>
|
||||
<Route path="/server/:server/channel/:channel">
|
||||
<MemberSidebar />
|
||||
</Route>
|
||||
<Route path="/channel/:channel">
|
||||
<MemberSidebar />
|
||||
</Route>
|
||||
<Route path="/server/:server/channel/:channel">{content}</Route>
|
||||
<Route path="/channel/:channel">{content}</Route>
|
||||
</Switch>
|
||||
</SidebarBase>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue