adding location set to available in every month

This commit is contained in:
2024-02-19 10:19:11 +01:00
parent 59d5652d03
commit dead2e1200

View File

@@ -81,12 +81,7 @@ export const MonthLocationList:React.FC<MonthLocationListProps > = ({
locations.map((location, ix) => <LocationCard key={`location-${location._id}`} location={location} />)
: null
}
{
yearMonth.month === expandedMonth ?
// show AddLocationButton as a last item in the first month
(monthIx === 0 ? <AddLocationButton yearMonth={yearMonth} /> : null)
: null
}
<AddLocationButton yearMonth={yearMonth} />
</MonthCard>
)
}