Skip to content

Commit 6cd33d3

Browse files
committed
refactor: remove feature flag for theme
1 parent a5a78c8 commit 6cd33d3

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

src/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ import { LOGOUT_CARD_BASE_BUTTON_CLASS } from '../LogoutCard'
2222
const ThemeSwitcher = ({ onChange }: ThemeSwitcherProps) => {
2323
const { handleThemeSwitcherDialogVisibilityChange, themePreference } = useTheme()
2424

25-
if (!window._env_.FEATURE_EXPERIMENTAL_THEMING_ENABLE) {
26-
return null
27-
}
28-
2925
const handleShowThemeSwitcherDialog = () => {
3026
handleThemeSwitcherDialogVisibilityChange(true)
3127
onChange()

src/Shared/Providers/ThemeProvider/utils.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ export const logThemeToAnalytics = ({ appTheme, themePreference }: ThemeConfigTy
4545
}
4646

4747
export const getThemeConfigFromLocalStorage = (): ThemeConfigType => {
48-
// Handling the case if the theming is turned off at a later stage
49-
if (!window._env_.FEATURE_EXPERIMENTAL_THEMING_ENABLE) {
50-
return {
51-
appTheme: AppThemeType.light,
52-
themePreference: THEME_PREFERENCE_MAP.light,
53-
}
54-
}
55-
5648
const selectedTheme = localStorage.getItem(THEME_PREFERENCE_STORAGE_KEY) as ThemePreferenceType
5749

5850
if (!selectedTheme || selectedTheme === THEME_PREFERENCE_MAP.auto) {

src/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ export interface customEnv {
9090
FEATURE_DEFAULT_MERGE_STRATEGY?: OverrideMergeStrategyType
9191
FEATURE_DEFAULT_LANDING_RB_ENABLE?: boolean
9292
FEATURE_ACTION_AUDIOS_ENABLE?: boolean
93-
/**
94-
* If true, the experimental theming feature is enabled
95-
*
96-
* @default false
97-
*/
98-
FEATURE_EXPERIMENTAL_THEMING_ENABLE?: boolean
9993
/**
10094
* If true, the code-editor will use codemirror engine
10195
* @default false

0 commit comments

Comments
 (0)