Skip to content

Commit 1ebfc84

Browse files
committed
chore: upgrade report infos style
1 parent 9a14345 commit 1ebfc84

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/report-infos.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
22
import type { EcoMetric } from "@/lib/types"
33
import { format } from "date-fns"
44
import { fr } from "date-fns/locale"
5-
import { Badge } from "./ui/badge"
65

76
const EcoMetricCard: React.FC<{ metrics: EcoMetric }> = ({ metrics }) => {
87
return (
98
<Card className="w-full max-w-4xl mx-auto">
109
<CardHeader>
1110
<CardTitle>Information du rapport</CardTitle>
1211
</CardHeader>
13-
<CardContent className="flex gap-4">
14-
<Badge variant="outline">{format(metrics.date, "PPP", { locale: fr })}</Badge>
15-
{metrics.url && <Badge variant="outline">{metrics.url}</Badge>}
12+
<CardContent className="flex justify-between">
13+
<div className="text-sm text-muted-foreground">
14+
{format(metrics.date, "PPP", { locale: fr })}
15+
</div>
16+
{metrics.url && <div className="text-sm text-muted-foreground">{metrics.url}</div>}
1617
</CardContent>
1718
</Card>
1819
)

0 commit comments

Comments
 (0)