Sha256: de3a79f7a7ae7fe552dfb5229a62d2e24a2d185be3d955c17be3f58c197f8ea0

Contents?: true

Size: 667 Bytes

Versions: 11

Compression:

Stored size: 667 Bytes

Contents

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

const SCCSubscribedProductsExpander = ({ setExpandAllInParent }) => (
  <SCCGenericExpander
    setInParent={setExpandAllInParent}
    selectOptionOpen={__('Show all products')}
    selectOptionClose={__('Show only subscribed products')}
    initLabel={__('Show/Hide unsubscribed')}
  />
);

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

SCCSubscribedProductsExpander.defaultProps = {};

export default SCCSubscribedProductsExpander;

Version data entries

11 entries across 11 versions & 1 rubygems

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