mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
WIP Feature / General & Users & Sidebar
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { createReducer } from '@reduxjs/toolkit';
|
||||
import t from 'store/types';
|
||||
|
||||
import { optionsArrayToMap } from 'utils';
|
||||
const initialState = {
|
||||
data: {
|
||||
organization: {
|
||||
name: 'Bigcapital, Limited Liabilities',
|
||||
},
|
||||
organization: {},
|
||||
},
|
||||
};
|
||||
|
||||
export default createReducer(initialState, {
|
||||
['asdfas']: (state, action) => {
|
||||
|
||||
[t.SETTING_SET]: (state, action) => {
|
||||
const { options } = action;
|
||||
|
||||
state.data.organization = optionsArrayToMap(options);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user