pinballmap / pbm-react

PBM React Native: iOS & Android Apps
https://pinballmap.com/app
GNU General Public License v3.0
33 stars 9 forks source link

Hide "Machines in this Area" button in some situations #526

Closed RyanTG closed 9 months ago

RyanTG commented 9 months ago

Only needed when coming from the Filter screen. Not needed when coming from LocationDetails or SuggestLocation (Add Machine button).

bpoore commented 9 months ago

We already had a prop coming in to set the title if the context was filtering, so the updates necessary here were tiny! Both commits are on master, only showing the button group when filtering and then updating to say Machine singularly when adding a machine to a location or Machines when adding a new location.