diff --git a/src/pages/Tenant/SelfTenantDetails.jsx b/src/pages/Tenant/SelfTenantDetails.jsx
index ea4b107d..2e3fbb38 100644
--- a/src/pages/Tenant/SelfTenantDetails.jsx
+++ b/src/pages/Tenant/SelfTenantDetails.jsx
@@ -3,7 +3,7 @@ import { useProfile } from "../../hooks/useProfile";
import TenantDetails from "./TenantDetails";
import { VIEW_TENANTS } from "../../utils/constants";
import { useNavigate } from "react-router-dom";
-import Loader from "../../components/common/Loader";
+import { SpinnerLoader } from "../../components/common/Loader";
import { useHasUserPermission } from "../../hooks/useHasUserPermission";
const SelfTenantDetails = () => {
@@ -19,7 +19,7 @@ const SelfTenantDetails = () => {
}, [isSelfTenantView, navigate]);
if (loading || !tenantId) {
- return
;
+ return
;
}
return (
diff --git a/src/pages/Tenant/TenantDetails.jsx b/src/pages/Tenant/TenantDetails.jsx
index d799522e..8d744293 100644
--- a/src/pages/Tenant/TenantDetails.jsx
+++ b/src/pages/Tenant/TenantDetails.jsx
@@ -7,7 +7,7 @@ import { ComingSoonPage } from "../Misc/ComingSoonPage";
import GlobalModel from "../../components/common/GlobalModel";
import EditProfile from "../../components/Tenant/EditProfile";
import SubScriptionHistory from "../../components/Tenant/SubScriptionHistory";
-import Loader from "../../components/common/Loader";
+import { SpinnerLoader } from "../../components/common/Loader";
import { useHasUserPermission } from "../../hooks/useHasUserPermission";
import { MANAGE_TENANTS, SUPPER_TENANT } from "../../utils/constants";
@@ -71,8 +71,11 @@ const TenantDetails = ({
if (!activeTenantId) return
No tenant selected.
;
if (isLoading)
return (
-
-
+
+
);
if (isError)
@@ -110,14 +113,14 @@ const TenantDetails = ({
data={
iTSelf
? [
- { label: "Home", link: "/dashboard" },
- { label: "Tenant Details", link: null },
- ]
+ { label: "Home", link: "/dashboard" },
+ { label: "Tenant Details", link: null },
+ ]
: [
- { label: "Home", link: "/dashboard" },
- { label: "Tenant", link: "/tenants" },
- { label: "Tenant Details", link: null },
- ]
+ { label: "Home", link: "/dashboard" },
+ { label: "Tenant", link: "/tenants" },
+ { label: "Tenant Details", link: null },
+ ]
}
/>
)}
@@ -128,9 +131,8 @@ const TenantDetails = ({
);
- return
:contentBody} />;
+ return
:contentBody} />;
};
export default SwitchTenant;
\ No newline at end of file
diff --git a/src/pages/authentication/TenantSelectionPage.jsx b/src/pages/authentication/TenantSelectionPage.jsx
index b8a5398d..5dac4e62 100644
--- a/src/pages/authentication/TenantSelectionPage.jsx
+++ b/src/pages/authentication/TenantSelectionPage.jsx
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
import { useTenants, useSelectTenant, useLogout } from "../../hooks/useAuth.jsx";
import { Link, useNavigate } from "react-router-dom";
import Dashboard from "../../components/Dashboard/Dashboard.jsx";
-import Loader from "../../components/common/Loader.jsx";
+import { SpinnerLoader } from "../../components/common/Loader.jsx";
const TenantSelectionPage = () => {
const [pendingTenant, setPendingTenant] = useState(null);
@@ -45,7 +45,7 @@ const TenantSelectionPage = () => {
isPending ||
(data?.data?.length === 1 && pendingTenant !== null)
) {
- return
;
+ return
;
}
if (!data?.data?.length) {
diff --git a/src/pages/employee/EmployeeList.jsx b/src/pages/employee/EmployeeList.jsx
index 10db6786..d675d5d2 100644
--- a/src/pages/employee/EmployeeList.jsx
+++ b/src/pages/employee/EmployeeList.jsx
@@ -39,6 +39,7 @@ import { setProjectId } from "../../slices/localVariablesSlice";
import { useHasUserPermission } from "../../hooks/useHasUserPermission";
import Pagination from "../../components/common/Pagination";
import handleEmployeeExport from "../../components/Employee/handleEmployeeExport";
+import { SpinnerLoader } from "../../components/common/Loader";
const EmployeeList = () => {
const selectedProjectId = useSelector(
@@ -468,12 +469,15 @@ const EmployeeList = () => {
{loading && (
- |
- Loading...
+ |
+
+
+
|
)}
+
{!loading &&
displayData?.length === 0 &&
(!searchText) ? (
@@ -649,16 +653,16 @@ const EmployeeList = () => {
))}
-