90% completed, only final touches left

This commit is contained in:
Amruth Pillai
2020-03-25 16:08:42 +05:30
parent 36800a944e
commit d5dcd38edb
21 changed files with 462 additions and 24 deletions

View File

@ -62,13 +62,14 @@ const initialState = {
},
},
theme: {
layout: 'Onyx',
font: {
family: '',
},
colors: {
background: '',
primary: '',
accent: '',
body: '',
},
},
};
@ -95,6 +96,12 @@ const reducer = (state, { type, payload }) => {
return set({ ...state }, `data.${payload.key}.items`, items);
case 'on_input':
return set({ ...state }, payload.key, payload.value);
case 'import_data':
return {
...state,
data: payload.data,
theme: payload.theme,
};
case 'populate_starter':
return {
...state,