Added map control submenus for brush color and erase all

This commit is contained in:
Mitchell McCaffrey
2020-04-20 11:56:56 +10:00
parent 27d3903e66
commit f5d1cdf60f
4 changed files with 189 additions and 75 deletions

View File

@@ -10,6 +10,7 @@ function MapMenu({
bottom,
right,
children,
style,
}) {
function handleModalContent(node) {
if (node) {
@@ -49,6 +50,7 @@ function MapMenu({
padding: 0,
borderRadius: "4px",
border: "none",
...style,
},
}}
contentRef={handleModalContent}
@@ -64,6 +66,7 @@ MapMenu.defaultProps = {
left: "initial",
right: "initial",
bottom: "initial",
style: {},
};
export default MapMenu;