diff --git a/frontend/src/components/HomeComponents/Footer/Footer.tsx b/frontend/src/components/HomeComponents/Footer/Footer.tsx index 4ece8790..4c136e9e 100644 --- a/frontend/src/components/HomeComponents/Footer/Footer.tsx +++ b/frontend/src/components/HomeComponents/Footer/Footer.tsx @@ -90,7 +90,7 @@ export const Footer = () => {

- © 2025{' '} + © 2026{' '}

- © 2025 + © 2026 = ({ }) => { const [isExporting, setIsExporting] = useState(false); + const isDark = + typeof document !== 'undefined' && + document.documentElement.classList.contains('dark'); + + const labelColor = isDark ? '#ffffff' : '#111111'; + const handleCSVExport = () => { exportReportToCSV(data, title); }; @@ -90,19 +96,19 @@ export const ReportChart: React.FC = ({ dataKey="completed" fill="#E776CB" name="Completed" - label={{ position: 'top', fill: 'white', fontSize: 12 }} + label={{ position: 'top', fill: labelColor, fontSize: 12 }} /> diff --git a/frontend/src/components/LandingComponents/Footer/Footer.tsx b/frontend/src/components/LandingComponents/Footer/Footer.tsx index 62e7213a..f3bf5ccb 100644 --- a/frontend/src/components/LandingComponents/Footer/Footer.tsx +++ b/frontend/src/components/LandingComponents/Footer/Footer.tsx @@ -88,7 +88,7 @@ export const Footer = () => {

- © 2025{' '} + © 2026{' '}

- © 2025 + © 2026 { return ( - <> +
@@ -19,6 +19,6 @@ export const LandingPage = () => {
- +
); }; diff --git a/frontend/src/components/__tests__/__snapshots__/LandingPage.test.tsx.snap b/frontend/src/components/__tests__/__snapshots__/LandingPage.test.tsx.snap index 7da4e57e..497dc17a 100644 --- a/frontend/src/components/__tests__/__snapshots__/LandingPage.test.tsx.snap +++ b/frontend/src/components/__tests__/__snapshots__/LandingPage.test.tsx.snap @@ -2,29 +2,33 @@ exports[`LandingPage Component using Snapshot renders landing page correctly: landing-page 1`] = ` -
- Mocked Navbar -
-
- Mocked Hero -
-
- Mocked About -
-
- Mocked HowItWorks -
-
- Mocked Contact -
-
- Mocked FAQ -
-
- Mocked Footer -
-
- Mocked ScrollToTop +
+
+ Mocked Navbar +
+
+ Mocked Hero +
+
+ Mocked About +
+
+ Mocked HowItWorks +
+
+ Mocked Contact +
+
+ Mocked FAQ +
+
+ Mocked Footer +
+
+ Mocked ScrollToTop +
`; diff --git a/frontend/src/components/ui/table.tsx b/frontend/src/components/ui/table.tsx index 6680e669..f02d1414 100644 --- a/frontend/src/components/ui/table.tsx +++ b/frontend/src/components/ui/table.tsx @@ -58,7 +58,7 @@ const TableRow = React.forwardRef<