Sha256: 550f0530b31d4b119784ad733a2c5e0c58d117e6876a29419b56060bc59b9c7f

Contents?: true

Size: 611 Bytes

Versions: 58

Compression:

Stored size: 611 Bytes

Contents

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

const SelectedStatus = ({ selectedCount, totalCount }) => (
  <div className="pf-c-dual-list-selector__status">
    <span className="pf-c-dual-list-selector__status-text">
      {sprintf(__('%(selectedCount)s of %(totalCount)s items selected'), {
        selectedCount,
        totalCount,
      })}
    </span>
  </div>
);

SelectedStatus.propTypes = {
  selectedCount: PropTypes.number.isRequired,
  totalCount: PropTypes.number.isRequired,
};

export default SelectedStatus;

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 webpack/components/DualList/SelectedStatus.js
foreman_ansible-15.0.1 webpack/components/DualList/SelectedStatus.js
foreman_ansible-15.0.0 webpack/components/DualList/SelectedStatus.js
foreman_ansible-14.2.2 webpack/components/DualList/SelectedStatus.js
foreman_ansible-14.2.1 webpack/components/DualList/SelectedStatus.js
foreman_ansible-13.0.7 webpack/components/DualList/SelectedStatus.js
foreman_ansible-14.2.0 webpack/components/DualList/SelectedStatus.js
foreman_ansible-14.1.1 webpack/components/DualList/SelectedStatus.js
foreman_ansible-14.1.0 webpack/components/DualList/SelectedStatus.js
foreman_ansible-13.0.5 webpack/components/DualList/SelectedStatus.js
foreman_ansible-14.0.0 webpack/components/DualList/SelectedStatus.js
foreman_ansible-13.0.4 webpack/components/DualList/SelectedStatus.js
foreman_ansible-13.0.3 webpack/components/DualList/SelectedStatus.js
foreman_ansible-13.0.2 webpack/components/DualList/SelectedStatus.js
foreman_ansible-13.0.1 webpack/components/DualList/SelectedStatus.js
foreman_ansible-13.0.0 webpack/components/DualList/SelectedStatus.js
foreman_ansible-12.0.7 webpack/components/DualList/SelectedStatus.js
foreman_ansible-10.4.4 webpack/components/DualList/SelectedStatus.js
foreman_ansible-7.1.8 webpack/components/DualList/SelectedStatus.js
foreman_ansible-12.0.6 webpack/components/DualList/SelectedStatus.js