mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
Style selector logic added
This commit is contained in:
@@ -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}`}>
|
||||
|
||||
Reference in New Issue
Block a user