mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Implement business view
This commit is contained in:
parent
222bd0848e
commit
1ced06b24e
13 changed files with 176 additions and 24 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue