File size: 500 Bytes
f2bee8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const SET_FONTS_LOADED = 'fontsLoaded/SET_FONTS_LOADED';

const initialState = false;

const reducer = function (state, action) {
    if (typeof state === 'undefined') state = initialState;
    switch (action.type) {
    case SET_FONTS_LOADED:
        return action.loaded;
    default:
        return state;
    }
};
const setFontsLoaded = () => ({
    type: SET_FONTS_LOADED,
    loaded: true
});

export {
    reducer as default,
    initialState as fontsLoadedInitialState,
    setFontsLoaded
};