unfinished work that adds loading the list of apps dynamically

This commit is contained in:
Maarten de Waard 2022-09-29 15:37:41 +02:00
parent 14b4a58d46
commit 86192f28fd
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA
10 changed files with 101 additions and 65 deletions

View file

@ -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 {