import * as React from 'react'; import RadioButtons, { RadioButtonProps } from '../../../containers/radio-button/RadioButton'; import { flatRadioButtonStyle } from './flatRadioButton.style'; import LabelWrapper from '../../common-inputs/common-input-left-dot/inner-comps/label/Label'; import RadioButton from './inner-comps/RadioButton'; class FlatRadioButton extends React.Component { shouldComponentUpdate(nextProps: RadioButtonProps) { return this.props.selectedRadio !== nextProps.selectedRadio; } render() { return ( ) => void) => { return (
{this.props.options.map((option: { label: string; id: string }) => { return ( ); })})
); }} /> ); } } export default FlatRadioButton;