The drawer will now stay open if clicked anywhere else
Also gave the onkyo a green color if powered
This commit is contained in:
parent
9e33bfe130
commit
bd3ad885e6
2 changed files with 3 additions and 6 deletions
|
|
@ -32,12 +32,8 @@ const Markers = (props) => R.values(R.mapObjIndexed((el,key) => (
|
|||
{
|
||||
html: iconHtml(el, props.state),
|
||||
iconSize: Leaflet.point(32,32)
|
||||
})}>
|
||||
<Popup
|
||||
onOpen={() => store.dispatch({type: Actions.CHANGE_UI, payload: key})}
|
||||
onClose={() => store.dispatch({type: Actions.CHANGE_UI})}>
|
||||
<span>{el.name}</span>
|
||||
</Popup>
|
||||
})}
|
||||
onClick={() => store.dispatch({type: Actions.CHANGE_UI, payload: key})}>
|
||||
</Marker>
|
||||
), R.propOr({}, "controls", Config)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue