@@ -2,7 +2,7 @@ import React, { useContext } from 'react'
22import PropTypes from 'prop-types'
33import Context from '../context'
44import Card from '../Shared/Card'
5- import Palette from './palette'
5+ // import Palette from './palette'
66
77function createHTML ( text ) {
88 let el = document . createElement ( "p" )
@@ -11,14 +11,14 @@ function createHTML(text) {
1111}
1212
1313function CardItem ( props ) {
14- const { removeCard, changeCardColor, setEditCard } = useContext ( Context )
14+ const { removeCard, /* changeCardColor,*/ setEditCard } = useContext ( Context )
1515 const { card, index } = props
1616 const cardItem = card && new Card ( card )
1717 const lineClip = 12
1818 const bgColor = cardItem . color
19- function tryChangeColor ( color ) {
19+ /* function tryChangeColor(color) {
2020 changeCardColor(index, color)
21- }
21+ }*/
2222 return (
2323
2424 < div className = "p-1" >
@@ -41,11 +41,11 @@ function CardItem(props) {
4141 >
4242 ✗
4343 </ button >
44- < Palette
44+ { /* <Palette
4545 className={`btn btn-light p-0 mx-2`}
4646 style={{ width: "1.8em", height: "1.8em", float: "right", borderColor: "transparent", backgroundColor: "transparent" }}
4747 setColor={tryChangeColor}
48- > </ Palette >
48+ ></Palette>*/ }
4949 </ div >
5050
5151 </ div >
0 commit comments