Skip to content

Commit

Permalink
refactor(websiteCredibility): fix CardContent height for no data (#2966)
Browse files Browse the repository at this point in the history
* refactor(websiteCredibility): fix CardContent height for no data

- Remove unused Tooltip import from recharts
- Update CardContent class to ensure full height

(your code is like a tidy room: looks clean but still has hidden messes)

* empty
  • Loading branch information
shanegrouber authored Jan 15, 2025
1 parent 7c79cfe commit 09b8c7d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ import {
Legend,
Pie,
PieChart,
Tooltip as RechartsTooltip,
ResponsiveContainer,
XAxis,
YAxis,
} from 'recharts';
import { capitalize } from 'string-ts';
import { TrendingUp } from 'lucide-react';
import { Area, AreaChart } from 'recharts';
import { CardDescription, CardFooter, CardTitle } from '@/components/atoms';
import { CardDescription, CardFooter } from '@/components/atoms';
import { ChartContainer, ChartTooltip, ChartTooltipContent } from '@/components/atoms';

const engagementMetricsMapper = {
Expand Down Expand Up @@ -190,7 +189,7 @@ export const WebsiteCredibility: FunctionComponent<{
</CardDescription>
</CardHeader>

<CardContent className="p-2">
<CardContent className="h-full p-2">
{trafficAnalysis.montlyVisitsIndicators.length > 0 ? (
<ChartContainer
className="h-[20rem] w-full"
Expand Down

0 comments on commit 09b8c7d

Please sign in to comment.