when db is empty, make the placeholder month card expanded

This commit is contained in:
2024-02-02 10:26:15 +01:00
parent a1d1db2a0c
commit 6d33c5c117

View File

@@ -44,7 +44,7 @@ export const MonthLocationList:React.FC<MonthLocationListProps > = ({
return( return(
<> <>
<MonthCard yearMonth={currentYearMonth} key={`month-${currentYearMonth}`} monthlyExpense={0} onToggle={() => {}}> <MonthCard yearMonth={currentYearMonth} key={`month-${currentYearMonth}`} monthlyExpense={0} onToggle={() => {}} expanded={true} >
<AddLocationButton yearMonth={currentYearMonth} /> <AddLocationButton yearMonth={currentYearMonth} />
</MonthCard> </MonthCard>
</>) </>)