Sha256: 465bc19f0026fa1820c8b850724a87ad985b93c900a929380aa904c3ba2c4fb4

Contents?: true

Size: 364 Bytes

Versions: 22

Compression:

Stored size: 364 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';

const BlankOption = ({ blank }) => {
  if (Object.keys(blank).length === 0) {
    return null;
  }
  return (
    <option key={blank.value} value={blank.value}>
      {blank.label}
    </option>
  );
};

BlankOption.propTypes = {
  blank: PropTypes.object.isRequired,
};

export default BlankOption;

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-10.0.1 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-10.0.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.5.1 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.5.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.3.3 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.3.2 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.3.1 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.4.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.3.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.2.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.1.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.0.2 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.0.1 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-9.0.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-7.0.7 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-8.0.0 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-7.0.6 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-7.0.5 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js
foreman_templates-7.0.4 webpack/components/NewTemplateSync/components/TextButtonField/BlankOption.js