mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-22 21:29:05 +00:00
If sendToZulip is disabled, then <ShareModal /> won't be loaded
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user