Created
February 28, 2017 19:13
-
-
Save gregturn/c5daf4ecdb6c14721e34caa144940ee4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
return (<li className='control-group'> | |
{this.props.settings.required.includes(this.props.name) && !this.props.settings[this.props.name] ? | |
<label className={labelLayout}>{this.props.label} <span className='required'>(*required)</span></label> | |
: | |
<label className={labelLayout}>{this.props.label}</label> | |
} | |
{optional} | |
<input className={inputLayout} type="text" | |
placeholder={this.props.placeHolder} | |
name={this.props.name} | |
onChange={this.props.handleChange} | |
value={this.props.settings[this.props.name]} /> | |
</li>) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment