Sha256: 0466b3ba3a66203e4ca0129acc4e0599c799e2918dc82a6a0b9b70dc08c080e3

Contents?: true

Size: 785 Bytes

Versions: 3

Compression:

Stored size: 785 Bytes

Contents

import React from 'react';
import { IntlProvider } from 'react-intl';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { Button } from 'patternfly-react';
import { INSIGHTS_SYNC_PAGE_TITLE } from './InsightsCloudSyncConstants';

const InsightsCloudSync = ({ syncInsights }) => {
  document.title = INSIGHTS_SYNC_PAGE_TITLE;
  return (
    <IntlProvider locale={navigator.language}>
      <div className="insights-cloud-sync">
        <h1>{__('Red Hat Insights Sync')}</h1>
        <Button bsStyle="primary" onClick={syncInsights}>
          {__('Sync now')}
        </Button>
      </div>
    </IntlProvider>
  );
};

InsightsCloudSync.propTypes = {
  syncInsights: PropTypes.func.isRequired,
};

export default InsightsCloudSync;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.8 webpack/InsightsCloudSync/InsightsCloudSync.js
foreman_rh_cloud-1.0.8 webpack/InsightsCloudSync/InsightsCloudSync.js
foreman_rh_cloud-2.0.8 webpack/InsightsCloudSync/InsightsCloudSync.js