organizing things and cracking problem with the polyfills i think?
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import Login from "../../pages/Login";
|
||||
import { STORE_ITEMS } from "../../electron/store";
|
||||
import SkeletonLoader from "../loading/skeleton";
|
||||
import { nirvanaApi } from "../../controller/nirvanaApi";
|
||||
import { useEffect } from "react";
|
||||
import { useGetUserDetails } from "../../controller/index";
|
||||
|
||||
@@ -12,11 +10,6 @@ export default function ProtectedRoute({
|
||||
}) {
|
||||
const { isLoading, isError, refetch } = useGetUserDetails();
|
||||
|
||||
useEffect(() => {
|
||||
// console.log(window.electronAPI.store.get(STORE_ITEMS.AUTH_TOKENS));
|
||||
// nirvanaApi.getUserDetails();
|
||||
}, []);
|
||||
|
||||
if (isLoading)
|
||||
return (
|
||||
<div className="container h-screen w-screen">
|
||||
|
||||
Reference in New Issue
Block a user