Style selector logic added

This commit is contained in:
2021-09-20 19:15:45 -03:00
parent e4df25e1b9
commit a9e9e1483e
7 changed files with 51 additions and 10 deletions

View File

@@ -2,9 +2,24 @@ import React from 'react'
const StyleSelectionChildren = (props) => {
return (
<div className="style-container">
<div
className="style-container"
onClick = { (e) => {
props.setStyle(props.title)
}}
>
<span class="checkbox__input">
<input id={`input-${props.number}`} type="checkbox"></input>
<input
id={`input-${props.number}`}
type="checkbox"
checked=
{
props.style === props.title ? true : false
}
>
</input>
<span className="checkbox_control"></span>
</span>
<label for={`input-${props.number}`}>