Feat/table (#105)

* feat/table add react-table
* feat/table add protected table route
* feat/table upgrade dependencies
* feat/table support parsing of new properties

Co-authored-by: DeepSource Bot <bot@deepsource.io>
This commit is contained in:
Carlos Valente
2022-04-09 22:05:56 +02:00
committed by GitHub
parent 8841a02754
commit 67ddcd8c68
146 changed files with 7423 additions and 5780 deletions
+6 -7
View File
@@ -7,20 +7,19 @@ export const fetchAllEvents = async () => {
};
export const requestPost = async (data) => {
return await axios.post(eventsURL, data);
await axios.post(eventsURL, data);
};
export const requestPut = async (data) => {
return await axios.put(eventsURL, data);
await axios.put(eventsURL, data);
};
export const requestPatch = async (data) => {
return await axios.patch(eventsURL, data);
await axios.patch(eventsURL, data);
};
export const requestReorder = async (data) => {
const action = 'reorder';
return await axios.patch(`${eventsURL}/${action}`, data);
await axios.patch(`${eventsURL}/reorder`, data);
};
export const requestApplyDelay = async (eventId) => {
@@ -29,9 +28,9 @@ export const requestApplyDelay = async (eventId) => {
};
export const requestDelete = async (eventId) => {
return await axios.delete(`${eventsURL}/${eventId}`);
await axios.delete(`${eventsURL}/${eventId}`);
};
export const requestDeleteAll = async () => {
return await axios.delete(`${eventsURL}/all`);
await axios.delete(`${eventsURL}/all`);
};