Skip to content

Commit 10441ed

Browse files
committed
hide palette from card item
1 parent 0ed9765 commit 10441ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Cards/CardItem.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useContext } from 'react'
22
import PropTypes from 'prop-types'
33
import Context from '../context'
44
import Card from '../Shared/Card'
5-
import Palette from './palette'
5+
//import Palette from './palette'
66

77
function createHTML(text) {
88
let el = document.createElement("p")
@@ -11,14 +11,14 @@ function createHTML(text) {
1111
}
1212

1313
function 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
&#10007;
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

Comments
 (0)