Add loading context and loading bar component; integrate axios for API calls and update routing for locker registration
This commit is contained in:
4
src/hooks/useLoading.js
Normal file
4
src/hooks/useLoading.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import { useContext } from "react";
|
||||
import { LoadingContext } from "../contexts/Loading";
|
||||
|
||||
export const useLoading = () => useContext(LoadingContext);
|
Reference in New Issue
Block a user