If sendToZulip is disabled, then <ShareModal /> won't be loaded

This commit is contained in:
Koper
2023-12-05 21:28:38 +07:00
parent 556a8cea80
commit 6f48aa8835
4 changed files with 16 additions and 11 deletions

View File

@@ -42,6 +42,7 @@ export const featureEnabled = (
featureName: "requireLogin" | "privacy" | "browse" | "sendToZulip",
) => {
const context = useContext(DomainContext);
console.log(context.features, featureName);
return context.features[featureName] as boolean | undefined;
};