1
0
mirror of https://github.com/Fayorg/calendrier-avant.git synced 2026-05-27 17:18:38 +02:00

added results page

This commit is contained in:
timhaller
2023-12-06 00:11:24 +01:00
parent b9b0c079d8
commit 2b05397b55
3 changed files with 25 additions and 4 deletions

View File

@@ -25,7 +25,8 @@ export function Chart({...props}: ChartProps) {
fontSize={12}
tickLine={false}
axisLine={false}
tickFormatter={(value) => `$${value}`}
allowDecimals={false}
tickFormatter={(value) => `${value}`}
/>
<Bar dataKey="total" fill="#80a256" radius={[4, 4, 0, 0]} />
</BarChart>

View File

@@ -37,7 +37,7 @@ export function DayCard({ className, ...props }: DayCardProps) {
}
return (
<Card className={cn(`w-full ${props.enabled && props.oral ? "hover:bg-slate-100" : null}`, className)} {...props} onClick={() => {route(props.enabled || false, props.day)}}>
<Card className={cn(`w-full ${props.enabled && props.oral ? "hover:bg-slate-100 hover:cursor-pointer" : "hover:cursor-not-allowed"}`, className)} {...props} onClick={() => {route(props.enabled || false, props.day)}}>
<CardContent className="p-4 gap-4 h-full">
{props.enabled ?
<div className="rounded-md p-4 h-full flex flex-col items-end">