Skip to content

Commit

Permalink
Merge pull request #72 from EscolaLMS/feature/stationary-events
Browse files Browse the repository at this point in the history
Feature/stationary events
  • Loading branch information
mtmotyka authored Mar 17, 2022
2 parents 8c8c52c + ec24205 commit 686e7ba
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 177 deletions.
10 changes: 10 additions & 0 deletions src/react/context/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ export const defaultReadConfig: EscolaLMSContextConfig = {
},

fetchFields: (filter: API.FieldsParams) => Promise.reject(),

stationaryEvents: {
loading: false,
},

fetchStationaryEvents: (filter: API.StationaryEventsParams) => Promise.reject(),
};

export const defaultApiConfig: EscolaLMSContextConfig = {
Expand Down Expand Up @@ -317,6 +323,10 @@ export const defaultApiConfig: EscolaLMSContextConfig = {
list: [],
},
fetchFields: (filter: API.FieldsParams) => Promise.reject(),
stationaryEvents: {
loading: false,
},
fetchStationaryEvents: (filter: API.StationaryEventsParams) => Promise.reject(),
};

export const defaultConfig = Object.assign({}, defaultReadConfig, defaultApiConfig);
Loading

0 comments on commit 686e7ba

Please sign in to comment.