[Redux] Fix config initial state

This commit is contained in:
Bruno Lemos
2018-10-21 11:41:13 -03:00
parent 61c0ace593
commit 9d0c5585a0
3 changed files with 6 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
import { loadTheme } from '../../../styles/utils'
import { Reducer, ThemePair } from '../../../types'
type State = ThemePair | ''
type State = ThemePair | null
const initialState: State = ''
const initialState: State = null
export const preferredDarkThemeReducer: Reducer<State> = (
state = initialState,

View File

@@ -1,9 +1,9 @@
import { loadTheme } from '../../../styles/utils'
import { Reducer, ThemePair } from '../../../types'
type State = ThemePair | ''
type State = ThemePair | null
const initialState: State = ''
const initialState: State = null
export const preferredLightThemeReducer: Reducer<State> = (
state = initialState,

View File

@@ -1,8 +1,8 @@
import { Reducer, ThemePair } from '../../../types'
type State = ThemePair | ''
type State = ThemePair | null
const initialState: State = ''
const initialState: State = null
export const themeReducer: Reducer<State> = (state = initialState, action) => {
switch (action.type) {