11// @flow
22
3- import React , { useState , useMemo , useRef , useEffect } from "react"
4- import { useLocalStorage } from "react-use"
5- import { createPortal } from "react-dom"
3+ import React , { useState } from "react"
64import IconButton from "@material-ui/core/IconButton"
75import BrushIcon from "@material-ui/icons/Brush"
8- import ArrowForwardIcon from "@material-ui/icons/ArrowForward"
96import { styled } from "@material-ui/core/styles"
107import * as colors from "@material-ui/core/colors"
118import Button from "@material-ui/core/Button"
12- import TextField from "@material-ui/core/TextField"
13- import InputAdornment from "@material-ui/core/InputAdornment"
14- import AddBoxTwoTone from "@material-ui/icons/AddBoxTwoTone"
15- import ExitToAppIcon from "@material-ui/icons/ExitToApp"
16- import CircularProgress from "@material-ui/core/CircularProgress"
179import HeaderPopupBox from "../HeaderPopupBox"
1810import useEventCallback from "use-event-callback"
1911import memoize from "lodash/memoize"
@@ -36,17 +28,17 @@ const OtherColorContainers = styled("div")({
3628 flexWrap : "wrap" ,
3729} )
3830
39- const StyledIconButton = styled ( IconButton ) ( ( { iconColor , selected } ) => ( {
31+ const StyledIconButton = styled ( IconButton ) ( ( { iconcolor , selected } ) => ( {
4032 display : "flex" ,
4133 justifyContent : "center" ,
4234 alignItems : "center" ,
43- backgroundColor : iconColor [ 700 ] ,
44- border : selected ? `4px solid ${ iconColor [ "A200" ] } ` : "4px solid #fff" ,
35+ backgroundColor : iconcolor [ 700 ] ,
36+ border : selected ? `4px solid ${ iconcolor [ "A200" ] } ` : "4px solid #fff" ,
4537 boxSizing : "content-box" ,
4638 margin : 4 ,
4739 transition : "transform 200ms linear" ,
4840 "&:hover" : {
49- backgroundColor : iconColor [ 800 ] ,
41+ backgroundColor : iconcolor [ 800 ] ,
5042 transform : "scale(1.2,1.2)" ,
5143 } ,
5244 "&:active" : {
@@ -55,16 +47,16 @@ const StyledIconButton = styled(IconButton)(({ iconColor, selected }) => ({
5547 } ,
5648} ) )
5749
58- const StyledButton = styled ( Button ) ( ( { selected, iconColor } ) => ( {
50+ const StyledButton = styled ( Button ) ( ( { selected, iconcolor } ) => ( {
5951 justifyContent : "flex-start" ,
6052 marginTop : 4 ,
6153 marginBottom : 4 ,
6254 paddingTop : 8 ,
6355 paddingBottom : 8 ,
64- backgroundColor : selected ? iconColor [ 50 ] : "#fff" ,
65- border : selected ? `2px solid ${ iconColor [ 200 ] } ` : "2px solid #fff" ,
56+ backgroundColor : selected ? iconcolor [ 50 ] : "#fff" ,
57+ border : selected ? `2px solid ${ iconcolor [ 200 ] } ` : "2px solid #fff" ,
6658 "&:hover" : {
67- backgroundColor : selected ? iconColor [ 100 ] : "none" ,
59+ backgroundColor : selected ? iconcolor [ 100 ] : "none" ,
6860 } ,
6961} ) )
7062
@@ -88,7 +80,7 @@ export default ({ selectedBrush, onChangeSelectedBrush }) => {
8880 < h1 > Sample Brushes</ h1 >
8981 < StyledButton
9082 selected = { selectedBrush === "complete" || selectedBrush === "blue" }
91- iconColor = { colors . blue }
83+ iconcolor = { colors . blue }
9284 fullWidth
9385 onClick = { handleClick ( "complete" ) }
9486 >
@@ -99,7 +91,7 @@ export default ({ selectedBrush, onChangeSelectedBrush }) => {
9991 selected = {
10092 selectedBrush === "review" || selectedBrush === "deepOrange"
10193 }
102- iconColor = { colors . deepOrange }
94+ iconcolor = { colors . deepOrange }
10395 fullWidth
10496 onClick = { handleClick ( "review" ) }
10597 >
@@ -110,32 +102,32 @@ export default ({ selectedBrush, onChangeSelectedBrush }) => {
110102 < StyledIconButton
111103 onClick = { handleClick ( "green" ) }
112104 selected = { selectedBrush === "green" }
113- iconColor = { colors . green }
105+ iconcolor = { colors . green }
114106 />
115107 < StyledIconButton
116108 onClick = { handleClick ( "purple" ) }
117109 selected = { selectedBrush === "purple" }
118- iconColor = { colors . purple }
110+ iconcolor = { colors . purple }
119111 />
120112 < StyledIconButton
121113 onClick = { handleClick ( "pink" ) }
122114 selected = { selectedBrush === "pink" }
123- iconColor = { colors . pink }
115+ iconcolor = { colors . pink }
124116 />
125117 < StyledIconButton
126118 onClick = { handleClick ( "cyan" ) }
127119 selected = { selectedBrush === "cyan" }
128- iconColor = { colors . cyan }
120+ iconcolor = { colors . cyan }
129121 />
130122 < StyledIconButton
131123 onClick = { handleClick ( "orange" ) }
132124 selected = { selectedBrush === "orange" }
133- iconColor = { colors . orange }
125+ iconcolor = { colors . orange }
134126 />
135127 < StyledIconButton
136128 onClick = { handleClick ( "indigo" ) }
137129 selected = { selectedBrush === "indigo" }
138- iconColor = { colors . indigo }
130+ iconcolor = { colors . indigo }
139131 />
140132 </ OtherColorContainers >
141133 </ HeaderPopupBox >
0 commit comments