chore: hide discovery button if not pointing to Revolt

This commit is contained in:
Paul Makles
2022-08-15 19:32:02 +02:00
parent 6c4a815590
commit 04590873cd
5 changed files with 29 additions and 21 deletions

View File

@@ -9,6 +9,7 @@ import { useApplicationState } from "../../../mobx/State";
import { useClient } from "../../../controllers/client/ClientController";
import { modalController } from "../../../controllers/modals/ModalController";
import { IS_REVOLT } from "../../../version";
/**
* Server list sidebar shim component
@@ -26,6 +27,8 @@ export default observer(() => {
[],
);
console.info("is_revolt", IS_REVOLT);
return (
<ServerList
client={client}
@@ -35,6 +38,7 @@ export default observer(() => {
home={state.layout.getLastHomePath}
servers={state.ordering.orderedServers}
reorder={state.ordering.reorderServer}
showDiscovery={IS_REVOLT}
/>
);
});