This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
const SegmentedControl = ({ input, disabled, heading, required, className, items, name, meta: { touched, error } }) => ( | |
<div className="field"> | |
<div className="control"> | |
<div className="help">{heading} {required ? (<span className="help inline is-danger">*</span>) : null}</div> | |
{ items.map((item, i) => ( | |
<label className="radio m-r-2" key={ i }> |