Added erase all back in

This commit is contained in:
Mitchell McCaffrey
2020-04-29 20:55:52 +10:00
parent 5357b79e70
commit aeb33058bb
3 changed files with 20 additions and 10 deletions

View File

@@ -3,10 +3,14 @@ import { Flex, IconButton } from "theme-ui";
import EraseAllIcon from "../../../icons/EraseAllIcon";
function EraseToolSettings({ onEraseAll }) {
function EraseToolSettings({ onToolAction }) {
return (
<Flex sx={{ alignItems: "center" }}>
<IconButton aria-label="Erase All" title="Erase All" onClick={onEraseAll}>
<IconButton
aria-label="Erase All"
title="Erase All"
onClick={() => onToolAction("eraseAll")}
>
<EraseAllIcon />
</IconButton>
</Flex>