This commit is contained in:
Ahmed Bouhuolia
2020-02-18 23:09:15 +02:00
parent a37341ff00
commit 56701951b7
11 changed files with 142 additions and 38 deletions

View 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;
},
});

View File

@@ -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,
});

View File

@@ -0,0 +1,6 @@
const ACTION = {
CHANGE_DASHBOARD_PAGE_TITLE: 'CHANGE_DASHBOARD_PAGE_TITLE',
};
export default ACTION;

View File

@@ -1,5 +1,7 @@
import authentication from './authentication';
import dashboard from './dashboard';
export default {
...authentication,
...dashboard,
};