Moved all reducers and actions to their own folders
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { CHANGE_THEME } from '../actions'
|
||||
|
||||
export const themeReducer = (
|
||||
previousState = 'DarkTheme',
|
||||
{ type, payload }
|
||||
) => {
|
||||
if (type === CHANGE_THEME) {
|
||||
return payload
|
||||
}
|
||||
return previousState
|
||||
}
|
||||
Reference in New Issue
Block a user