mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
WIP
This commit is contained in:
12
client/src/store/reducers/dashboard.js
Normal file
12
client/src/store/reducers/dashboard.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import t from 'store/types';
|
||||
import { createReducer } from '@reduxjs/toolkit';
|
||||
|
||||
const initialState = {
|
||||
pageTitle: '',
|
||||
};
|
||||
|
||||
export default createReducer(initialState, {
|
||||
[t.CHANGE_DASHBOARD_PAGE_TITLE]: (state, action) => {
|
||||
state.pageTitle = action.pageTitle;
|
||||
},
|
||||
});
|
||||
@@ -1,10 +1,12 @@
|
||||
import { combineReducers } from 'redux';
|
||||
import authentication from './authentication';
|
||||
import dashboard from './dashboard';
|
||||
// import accounts from './accounts';
|
||||
// import users from './users';
|
||||
|
||||
export default combineReducers({
|
||||
authentication,
|
||||
dashboard,
|
||||
// users,
|
||||
// accounts,
|
||||
});
|
||||
6
client/src/store/types/dashboard.js
Normal file
6
client/src/store/types/dashboard.js
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
const ACTION = {
|
||||
CHANGE_DASHBOARD_PAGE_TITLE: 'CHANGE_DASHBOARD_PAGE_TITLE',
|
||||
};
|
||||
|
||||
export default ACTION;
|
||||
@@ -1,5 +1,7 @@
|
||||
import authentication from './authentication';
|
||||
import dashboard from './dashboard';
|
||||
|
||||
export default {
|
||||
...authentication,
|
||||
...dashboard,
|
||||
};
|
||||
Reference in New Issue
Block a user