Finalized language handover.
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user