[Glitch] Remove collections client-side feature flag
Port f90f1e3b75f5bb53716bf264a5957eab9e85f1d0 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
4028172753
commit
093858e31a
@ -1,11 +1,5 @@
|
|||||||
import {
|
import { isServerFeatureEnabled } from '@/flavours/glitch/utils/environment';
|
||||||
isClientFeatureEnabled,
|
|
||||||
isServerFeatureEnabled,
|
|
||||||
} from '@/flavours/glitch/utils/environment';
|
|
||||||
|
|
||||||
export function areCollectionsEnabled() {
|
export function areCollectionsEnabled() {
|
||||||
return (
|
return isServerFeatureEnabled('collections');
|
||||||
isClientFeatureEnabled('collections') &&
|
|
||||||
isServerFeatureEnabled('collections')
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export function isServerFeatureEnabled(feature: ServerFeatures) {
|
|||||||
return initialState?.features.includes(feature) ?? false;
|
return initialState?.features.includes(feature) ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
type ClientFeatures = 'collections';
|
type ClientFeatures = never;
|
||||||
|
|
||||||
export function isClientFeatureEnabled(feature: ClientFeatures) {
|
export function isClientFeatureEnabled(feature: ClientFeatures) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user