Finalized language handover.

This commit is contained in:
2018-10-30 07:21:58 +11:00
parent c884efb837
commit 45866c37fc
11 changed files with 85 additions and 100 deletions

View File

@ -28,7 +28,7 @@ const initialState = {
code: Language.getLanguage()
};
function language(state, action) {
export default (state, action) => {
if(typeof state === typeof undefined) {
state = initialState;
}
@ -42,6 +42,4 @@ function language(state, action) {
default:
return state;
}
}
export default language;
};

View File

@ -31,7 +31,7 @@ const initialState = {
open: false
}
const menu = function(state, action) {
export default (state, action) => {
if(typeof state === typeof undefined) {
state = initialState;
}
@ -47,5 +47,3 @@ const menu = function(state, action) {
return state;
}
}
export default menu;

View File

@ -30,7 +30,7 @@ const initialState = {
open: false
}
const modal = function(state, action) {
export default (state, action) => {
if(typeof state === typeof undefined) {
state = initialState;
}
@ -47,5 +47,3 @@ const modal = function(state, action) {
return state;
}
}
export default modal;