Merge branch 'main' of http://git.wdipl.com/Siddhesh.More/SSA-Admin-Panel into yasin
This commit is contained in:
@@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
|
||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||
}, {
|
||||
"url": "index.html",
|
||||
"revision": "0.g82l9bbo3ro"
|
||||
"revision": "0.s1fup7lrbig"
|
||||
}], {});
|
||||
workbox.cleanupOutdatedCaches();
|
||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||
|
||||
@@ -52,6 +52,7 @@ const Login = () => {
|
||||
Authorization: `Basic ${basicAuth}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
@@ -70,11 +71,15 @@ const Login = () => {
|
||||
} catch (error) {
|
||||
if (error) {
|
||||
console.error("Login failed", error);
|
||||
setIsLoading(false);
|
||||
setIsLoading(false)
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<VStack w={"100%"} h={"100vh"} bg={"#ffffff"}>
|
||||
<HStack
|
||||
|
||||
@@ -5,8 +5,8 @@ type AuthState = {
|
||||
};
|
||||
|
||||
const initialState: AuthState = {
|
||||
token: localStorage.getItem("token") || null, // ✅ Ensures token is either a string or null
|
||||
};
|
||||
token: localStorage.getItem("token"), // Load token from localStorage
|
||||
};
|
||||
|
||||
const authSlice = createSlice({
|
||||
name: "auth",
|
||||
|
||||
Reference in New Issue
Block a user