adding Pikachu template to the mix

This commit is contained in:
Amruth Pillai
2020-03-25 19:22:34 +05:30
parent 7bec7b5d49
commit d294517b6c
11 changed files with 226 additions and 16 deletions

View File

@ -67,9 +67,9 @@ const initialState = {
family: '',
},
colors: {
background: '',
primary: '',
accent: '',
background: '#ffffff',
primary: '#212121',
accent: '#f44336',
},
},
};
@ -100,6 +100,7 @@ const reducer = (state, { type, payload }) => {
localStorage.setItem('state', JSON.stringify(state));
return state;
case 'import_data':
if (payload === null) return initialState;
return {
...state,
data: payload.data,