[Glitch] Adds feature flag for 5.0 redesign
Port 474c807e8e to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
97b64138ca
commit
912dde1ac1
1 file changed
+6
-1
@@ -18,7 +18,7 @@ export function isServerFeatureEnabled(feature: ServerFeatures) {
|
||||
return initialState?.features.includes(feature) ?? false;
|
||||
}
|
||||
|
||||
type ClientFeatures = never;
|
||||
type ClientFeatures = 'redesign';
|
||||
|
||||
export function isClientFeatureEnabled(feature: ClientFeatures) {
|
||||
try {
|
||||
@@ -30,3 +30,8 @@ export function isClientFeatureEnabled(feature: ClientFeatures) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/* Checks if the 5.0 redesign features are enabled or not. */
|
||||
export function isRedesignEnabled() {
|
||||
return isClientFeatureEnabled('redesign');
|
||||
}
|
||||
Reference in new issue
Block a user