mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
Added hide to style selector and more modularizated the code
This commit is contained in:
18
src/components/StyleSelectionChildren.jsx
Normal file
18
src/components/StyleSelectionChildren.jsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react'
|
||||
|
||||
const StyleSelectionChildren = (props) => {
|
||||
return (
|
||||
<div className="style-container">
|
||||
<span class="checkbox__input">
|
||||
<input id={`input-${props.number}`} type="checkbox"></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
|
||||
Reference in New Issue
Block a user