Implement business view

This commit is contained in:
inpsyde-maticluznar 2024-10-24 06:35:48 +02:00
parent 222bd0848e
commit 1ced06b24e
No known key found for this signature in database
GPG key ID: D005973F231309F6
13 changed files with 176 additions and 24 deletions

View file

@ -1,13 +1,20 @@
import data from '../../utils/data';
const SelectBox = ( props ) => {
let boxClassName = 'ppcp-r-select-box';
if ( props.value === props.currentValue ) {
boxClassName += ' selected';
}
return (
<div className="ppcp-r-select-box">
<div className={ boxClassName }>
<div className="ppcp-r-select-box__radio">
<input
checked="checked"
className="ppcp-r-select-box__radio-value"
type="radio"
name={ props.name }
value={ props.value }
onChange={ () => props.changeCallback( props.value ) }
/>
<span className="ppcp-r-select-box__radio-presentation"></span>
</div>