Sha256: 046f4c755f6c8a4e456bc9f20d184c79a72bcc445a7bbedacdf26cc4e35ef962

Contents?: true

Size: 607 Bytes

Versions: 65

Compression:

Stored size: 607 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Button, Icon } from 'patternfly-react';
import { noop } from 'foremanReact/common/helpers';
import { translate as __ } from 'foremanReact/common/I18n';

import './fileDownload.scss';

const FileDownload = ({ onClick }) => (
  <Grid.Col sm={12}>
    <Button onClick={onClick} className="download-button">
      {__('Download Report')} <Icon name="download" />
    </Button>
  </Grid.Col>
);

FileDownload.propTypes = {
  onClick: PropTypes.func,
};

FileDownload.defaultProps = {
  onClick: noop,
};

export default FileDownload;

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.2.0 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.60 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-10.0.4 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-11.1.0 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js