Moved all reducers and actions to their own folders

This commit is contained in:
Deluan
2020-11-08 13:15:46 -05:00
parent 24b040adf9
commit 3fc81638c7
33 changed files with 204 additions and 206 deletions
+11
View File
@@ -0,0 +1,11 @@
import { CHANGE_THEME } from '../actions'
export const themeReducer = (
previousState = 'DarkTheme',
{ type, payload }
) => {
if (type === CHANGE_THEME) {
return payload
}
return previousState
}