fixing typescript errors
This commit is contained in:
@@ -27,7 +27,7 @@ export const MonthCard:FC<MonthCardProps> = ({ yearMonth, children, monthlyExpen
|
||||
// if the element i selected > scroll it into view
|
||||
elRef.current.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
}, []);
|
||||
}, [expanded]);
|
||||
|
||||
return(
|
||||
<div className="collapse collapse-plus bg-base-200 my-1" ref={elRef}>
|
||||
|
||||
Reference in New Issue
Block a user