src/components/ListPickerRadio.js
/**
 * Radio button with label for the ListPickerModal component
 */
Radio button with label for the ListPickerModal component
Radio button with label for the ListPickerModal component
function ListPickerRadio({ value, current, onChange }) {
  return (
    <label htmlFor={`listform-${value}`}>
      <input
        type="radio"
        name="chosen-list"
        id={`listform-${value}`}
        value={value}
        checked={value === current}
        onChange={onChange}
      />{" "}
      {parseName(value)}
    </label>
  );
}
function ListPickerRadio ( { value , current , onChange } ) { return ( < label htmlFor = { ` ${ value } ` } > < input type = "radio" name = "chosen-list" id = { ` ${ value } ` } value = { value } checked = { value === current } onChange = { onChange } / > { " " } { parseName ( value ) } < / label > ) ; }
Radio button with label for the ListPickerModal component
Radio button with label for the ListPickerModal component