website/src/reducers/theme.ts
Function theme
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function theme(state: ThemeState = defaultThemeState, action: Actions): ThemeState {
function setTheme(newTheme: string): ThemeState {
// Update theme analytics info
withTracker((tracker) => tracker.setCustomDimension(DIMENSIONS.theme, newTheme));