mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 15:10:57 -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],
|
[setSidebar],
|
||||||
);
|
);
|
||||||
|
|
||||||
if (sidebar === "search") {
|
const content =
|
||||||
return <SearchSidebar close={close} />;
|
sidebar === "search" ? (
|
||||||
}
|
<SearchSidebar close={close} />
|
||||||
|
) : (
|
||||||
|
<MemberSidebar />
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidebarBase>
|
<SidebarBase>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/server/:server/channel/:channel">
|
<Route path="/server/:server/channel/:channel">{content}</Route>
|
||||||
<MemberSidebar />
|
<Route path="/channel/:channel">{content}</Route>
|
||||||
</Route>
|
|
||||||
<Route path="/channel/:channel">
|
|
||||||
<MemberSidebar />
|
|
||||||
</Route>
|
|
||||||
</Switch>
|
</Switch>
|
||||||
</SidebarBase>
|
</SidebarBase>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue