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} />)
|
locations.map((location, ix) => <LocationCard key={`location-${location._id}`} location={location} />)
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
{
|
<AddLocationButton yearMonth={yearMonth} />
|
||||||
yearMonth.month === expandedMonth ?
|
|
||||||
// show AddLocationButton as a last item in the first month
|
|
||||||
(monthIx === 0 ? <AddLocationButton yearMonth={yearMonth} /> : null)
|
|
||||||
: null
|
|
||||||
}
|
|
||||||
</MonthCard>
|
</MonthCard>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user