mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
34 lines
870 B
JavaScript
34 lines
870 B
JavaScript
import React from 'react'
|
|
|
|
const StyleSelectionChildren = (props) => {
|
|
return (
|
|
<div
|
|
className="style-container"
|
|
onClick = { (e) => {
|
|
props.setStyle(props.title)
|
|
}}
|
|
>
|
|
|
|
<span class="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}`}>
|
|
<span className="title">{props.title}</span>
|
|
<span className="times">{props.times}</span>
|
|
</label>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default StyleSelectionChildren
|