diff --git a/client/src/hooks/useDynamicLegacyCSS.ts b/client/src/hooks/useDynamicLegacyCSS.ts
index 5687f16..c0c17d0 100644
--- a/client/src/hooks/useDynamicLegacyCSS.ts
+++ b/client/src/hooks/useDynamicLegacyCSS.ts
@@ -1,8 +1,6 @@
import { useEffect, useState } from 'react';
-import { useLocation } from 'react-router-dom';
const useDynamicLegacyCSS = (isUsingLegacyCSS: boolean) => {
- const { pathname } = useLocation();
const [cssLoaded, setCssLoaded] = useState(false);
useEffect(() => {
@@ -21,7 +19,7 @@ const useDynamicLegacyCSS = (isUsingLegacyCSS: boolean) => {
} else {
setCssLoaded(true);
}
- }, [pathname, isUsingLegacyCSS]);
+ }, [isUsingLegacyCSS]);
return cssLoaded;
};
diff --git a/client/src/webpages/dashboard/Dashboard.tsx b/client/src/webpages/dashboard/Dashboard.tsx
index 56dbd9a..9114941 100644
--- a/client/src/webpages/dashboard/Dashboard.tsx
+++ b/client/src/webpages/dashboard/Dashboard.tsx
@@ -67,7 +67,6 @@ import OrgSafetySettings from '../settings/OrgSafetySettings';
import NCMECSettings from '../settings/NCMECSettings';
import SSOSettings from '../settings/SSOSettings';
import MatchingBanksDashboard from './banks/MatchingBanksDashboard';
-import Layout from './Layout';
import ManualReviewAppealSettings from './mrt/ManualReviewAppealSettings';
import Overview from './overview/Overview';
import PolicyForm from './policies/PolicyForm';
@@ -707,58 +706,61 @@ export default function Dashboard() {
return
;
}
- if (isUsingLegacyCSS) {
- return (
-
-
- Home
-
-
logout()}
- isDemoOrg={isDemoOrg}
- />
-
-
-
-
- {isCSSLoaded ? : }
-
-
-
-
- );
- }
-
return (
-
logout()}
- isDemoOrg={isDemoOrg}
- />
- }
- />
+
+
+ Home
+
+
logout()}
+ isDemoOrg={isDemoOrg}
+ />
+ {isUsingLegacyCSS ? (
+ <>
+
+
+
+
+ {isCSSLoaded ? : }
+
+
+
+ >
+ ) : (
+
+
+
+ )}
+
);
}