Profile redesign: Switch to server flag (#37876)
This commit is contained in:
@@ -12,13 +12,13 @@ export function isProduction() {
|
||||
else return import.meta.env.PROD;
|
||||
}
|
||||
|
||||
export type ServerFeatures = 'fasp' | 'collections';
|
||||
export type ServerFeatures = 'fasp' | 'collections' | 'profile_redesign';
|
||||
|
||||
export function isServerFeatureEnabled(feature: ServerFeatures) {
|
||||
return initialState?.features.includes(feature) ?? false;
|
||||
}
|
||||
|
||||
type ClientFeatures = 'profile_redesign' | 'collections';
|
||||
type ClientFeatures = 'collections';
|
||||
|
||||
export function isClientFeatureEnabled(feature: ClientFeatures) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user