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

Version Path
lcms-engine-0.5.5 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.5.4 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.5.3 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.5.2 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.5.1 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.5.0 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.4.2 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.4.1 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx
lcms-engine-0.4.0 app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx