Sha256: 4bfbe146e73a8bb13f6214fb069db32cd5a3a173ecb84d30eb2e377e27918654
Contents?: true
Size: 616 Bytes
Versions: 9
Compression:
Stored size: 616 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; function ResourcePickerResource(props) { return ( <div className="o-assocpicker-selection"> <input type="hidden" name={props.name} value={props.resource.id} /> <div className="o-assocpicker-title"> {props.resource.title} <span className="o-assocpicker-close" onClick={props.onClickClose}> × </span> </div> </div> ); } ResourcePickerResource.propTypes = { name: PropTypes.string, resource: PropTypes.object, onClickClose: PropTypes.func, }; export default ResourcePickerResource;
Version data entries
9 entries across 9 versions & 1 rubygems