From 77df9b6f357880ad150e9efce53a37ac4cbc365a Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Mon, 20 Apr 2020 15:26:36 +1000 Subject: [PATCH] Added icon to erase all submenu --- src/components/MapControls.js | 29 +++++++++++++++++++++-------- src/icons/EraseAllIcon.js | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 src/icons/EraseAllIcon.js diff --git a/src/components/MapControls.js b/src/components/MapControls.js index 36b82d6..d6c2a07 100644 --- a/src/components/MapControls.js +++ b/src/components/MapControls.js @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { Flex, Box, IconButton, Button, Label } from "theme-ui"; +import { Flex, Box, IconButton, Label } from "theme-ui"; import AddMapButton from "./AddMapButton"; import ExpandMoreIcon from "../icons/ExpandMoreIcon"; @@ -14,6 +14,7 @@ import GridOffIcon from "../icons/GridOffIcon"; import colors, { colorOptions } from "../helpers/colors"; import MapMenu from "./MapMenu"; +import EraseAllIcon from "../icons/EraseAllIcon"; function MapControls({ onMapChange, @@ -100,16 +101,28 @@ function MapControls({ ), erase: ( - - + ), }; diff --git a/src/icons/EraseAllIcon.js b/src/icons/EraseAllIcon.js new file mode 100644 index 0000000..d5e66a9 --- /dev/null +++ b/src/icons/EraseAllIcon.js @@ -0,0 +1,18 @@ +import React from "react"; + +function EraseAllIcon() { + return ( + + + + + ); +} + +export default EraseAllIcon;