diff --git a/react-frontend/src/pages/dashboard.tsx b/react-frontend/src/pages/dashboard.tsx index 9dff62a..1544193 100644 --- a/react-frontend/src/pages/dashboard.tsx +++ b/react-frontend/src/pages/dashboard.tsx @@ -1,6 +1,15 @@ import { Navbar } from '@/App' import { ThemeProvider } from '@/components/theme-provider' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' +import { + Table, + TableBody, + TableCaption, + TableCell, + TableHead, + TableHeader, + TableRow, +} from '@/components/ui/table' import { useParams } from 'react-router-dom' import { useEffect, useState } from 'react' @@ -189,21 +198,42 @@ export default function Dashboard() { - {countryVisitor.map((country) => { - return ( -
-
- -
{country.country}
-
-
- {country.visitor_count} -
-
- ) - })} + + + + + Country + + Visitor(s) + + + + + {countryVisitor.map((country) => { + return ( + + + + + +
+ { + country.country + } +
+
+ + { + country.visitor_count + } + +
+ ) + })} +
+