Skip to content
Snippets Groups Projects
Verified Commit 1ca98dce authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Setup hook for reservation call.

parent 5735de19
No related branches found
No related tags found
2 merge requests!56Refined auth flow and new website pages.,!54Setup reservation for api compatibility.
import { getReservations } from 'api/getReservations';
import { getRole } from 'api/getRole';
import { useEffect, useState } from 'react';
export const useReservations = (): any => {
useEffect(() => {
let isMounted = true;
getReservations().then((data) => console.log(data));
return () => {
isMounted = false;
};
}, []);
return null;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment