Skip to content

Commit fdb77c3

Browse files
committed
clean fixes
1 parent 935cd84 commit fdb77c3

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/Cards/CardItem.js

+2-16
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,14 @@ import Context from '../context'
44
import Card from '../Shared/Card'
55
import ReactMarkdown from 'react-markdown'
66
import gfm from 'remark-gfm'
7-
//import Palette from './palette'
8-
9-
function createHTML(text) {
10-
let el = document.createElement("p")
11-
el.innerText = el.textContent = text
12-
return { __html: el.innerHTML }
13-
}
147

158
function CardItem(props) {
16-
const { removeCard, /*changeCardColor,*/ setEditCard } = useContext(Context)
9+
const { removeCard, setEditCard } = useContext(Context)
1710
const { card, index } = props
1811
const cardItem = card && new Card(card)
1912
const lineClip = 12
2013
const bgColor = cardItem.color
21-
/*function tryChangeColor(color) {
22-
changeCardColor(index, color)
23-
}*/
14+
2415
return (
2516

2617
<div className="p-1" >
@@ -47,11 +38,6 @@ function CardItem(props) {
4738
>
4839
&#10007;
4940
</button>
50-
{/*<Palette
51-
className={`btn btn-light p-0 mx-2`}
52-
style={{ width: "1.8em", height: "1.8em", float: "right", borderColor: "transparent", backgroundColor: "transparent" }}
53-
setColor={tryChangeColor}
54-
></Palette>*/}
5541
</div>
5642

5743
</div>

0 commit comments

Comments
 (0)