Feat/block improvements (#95)

* feat/89-block-improvements style: replace reload icon
* feat/block-feat/block-improvements add cursor buttons
* feat/block-improvements hover to create
* feat/block-improvements change settings in modal
* feat/block-improvements version bump
This commit is contained in:
Carlos Valente
2022-01-22 23:23:31 +01:00
committed by GitHub
parent 906a6631a7
commit 6a6f68b2f9
34 changed files with 652 additions and 255 deletions
+4 -4
View File
@@ -20,18 +20,18 @@ export const requestPatch = async (data) => {
export const requestReorder = async (data) => {
const action = 'reorder';
return await axios.patch(eventsURL + '/' + action, data);
return await axios.patch(`${eventsURL}/${action}`, data);
};
export const requestApplyDelay = async (eventId) => {
const action = 'applydelay';
return await axios.patch(eventsURL + '/' + action + '/' + eventId);
return await axios.patch(`${eventsURL}/${action}/${eventId}`);
};
export const requestDelete = async (eventId) => {
return await axios.delete(eventsURL + '/' + eventId);
return await axios.delete(`${eventsURL}/${eventId}`);
};
export const requestDeleteAll = async () => {
return await axios.delete(eventsURL + '/all');
return await axios.delete(`${eventsURL}/all`);
};