home page converted back to server-side component
This commit is contained in:
@@ -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)}`}
|
||||
|
||||
Reference in New Issue
Block a user