adding location set to available in every month
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user