Add loading context and loading bar component; integrate axios for API calls and update routing for locker registration

This commit is contained in:
2024-12-22 15:59:24 +05:30
parent bfe22a61a5
commit a6a67d69d5
14 changed files with 487 additions and 40 deletions

4
src/hooks/useLoading.js Normal file
View File

@@ -0,0 +1,4 @@
import { useContext } from "react";
import { LoadingContext } from "../contexts/Loading";
export const useLoading = () => useContext(LoadingContext);