Sha256: 0dc8cc9cb0a5796804814e920c087525185e3ac3a6157565487d6d078cc443a0

Contents?: true

Size: 756 Bytes

Versions: 9

Compression:

Stored size: 756 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import ResourcePicker from '../resource-picker/ResourcePicker'; // eslint-disable-line no-unused-vars

function PickerButton(props) {
  return (
    <div className="o-assocpicker-container">
      <button type="button" className="o-assocpicker-add button" onClick={props.onClick}>
        Select
      </button>
      <div className="o-assocpicker-selections">
        {props.hiddenInputs}
        {props.content}
      </div>
      <div className="o-assocpicker-modal reveal" ref={props.onRef}></div>
    </div>
  );
}

PickerButton.propTypes = {
  onClick: PropTypes.func,
  hiddenInputs: PropTypes.node,
  content: PropTypes.array,
  onRef: PropTypes.func,
};

export default PickerButton;

Version data entries

9 entries across 9 versions & 1 rubygems

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