Sha256: 3a0370df581dcc6cf4830be277b46d3221256a475e2b41df7f1de766d442bc08
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 Bytes
Contents
import React from 'react' const ToolTip = ({id, tooltip}) => ( <div> <div className='icon material-icons tooltip-icon' id={id}>help</div> <div className='mdl-tooltip mdl-tooltip--large' data-mdl-for={id}> {tooltip} </div> </div> ) class DateTimeType extends React.PureComponent { render() { const { field_item, id, value = '', metadata, required = false, name, validations } = this.props console.log('DateTimeType', this.props) return ( <div className='mdl-textfield mdl-js-textfield mdl-textfield--floating-label'> <input type='hidden' value={id}/> <label className='mdl-textfield__label'>{name}</label> {field_item.tooltip && ToolTip(field_item)} <input defaultValue={value} required={required} className='datepicker mdl-textfield__input'/> </div> ) } } export default DateTimeType
Version data entries
3 entries across 3 versions & 1 rubygems