home page converted back to server-side component

This commit is contained in:
2024-02-09 09:40:43 +01:00
parent 960210cbc3
commit 27b696faab
5 changed files with 70 additions and 117 deletions

View File

@@ -30,7 +30,7 @@ export const MonthCard:FC<MonthCardProps> = ({ yearMonth, children, monthlyExpen
}, [expanded]);
return(
<div className="collapse collapse-plus bg-base-200 my-1" ref={elRef}>
<div className={`collapse collapse-plus bg-base-200 my-1 ${expanded ? "border-2 border-neutral" : ""}`} ref={elRef}>
<input type="checkbox" name="my-accordion-3" checked={expanded} onChange={handleChange} />
<div className="collapse-title text-xl font-medium">
{`${formatYearMonth(yearMonth)}`}