Sha256: f659fc0f2338abf49d2def5135cbf1d00087943e7524614055a72aa852790775

Contents?: true

Size: 618 Bytes

Versions: 11

Compression:

Stored size: 618 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import SCCGenericExpander from '../SCCGenericExpander';

const SCCProductTreeExpander = ({ setExpandAllInParent }) => (
  <SCCGenericExpander
    setInParent={setExpandAllInParent}
    selectOptionOpen={__('Expand products')}
    selectOptionClose={__('Collapse products')}
    initLabel={__('Collapse/Expand')}
  />
);

SCCProductTreeExpander.propTypes = {
  setExpandAllInParent: PropTypes.func.isRequired,
};

SCCProductTreeExpander.defaultProps = {};

export default SCCProductTreeExpander;

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_scc_manager-4.0.0 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-3.1.1 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-3.1.0 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-3.0.0 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-2.3.0 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-2.2.3 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-2.2.2 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-2.2.1 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-2.2.0 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-2.1.0 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js
foreman_scc_manager-2.0.0 webpack/components/SCCProductPage/components/common/SCCProductTreeExpander/index.js