unfinished work that adds loading the list of apps dynamically
This commit is contained in:
parent
14b4a58d46
commit
86192f28fd
10 changed files with 101 additions and 65 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import { AppActionTypes } from './actions';
|
||||
|
||||
const initialUsersState: any = {
|
||||
users: [],
|
||||
user: {},
|
||||
userModalLoading: false,
|
||||
usersLoading: false,
|
||||
const initialAppsState: any = {
|
||||
apps: [],
|
||||
app: {},
|
||||
appModalLoading: false,
|
||||
appsLoading: false,
|
||||
};
|
||||
|
||||
const appsReducer = (state: any = initialUsersState, action: any) => {
|
||||
const appsReducer = (state: any = initialAppsState, action: any) => {
|
||||
switch (action.type) {
|
||||
case AppActionTypes.FETCH_APPS:
|
||||
return {
|
||||
|
|
|
|||
Reference in a new issue