Sha256: abc671d5be63af1022678453de4ffb78d18613b392d339d4f1b5ee748532be23

Contents?: true

Size: 585 Bytes

Versions: 149

Compression:

Stored size: 585 Bytes

Contents

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

const ErrorState = ({ error }) => (
  <div className="error_state">
    <Icon className="error_icon" name="times" size="2x" />
    <p>{__('Encountered an error while trying to access the server:')}</p>
    <p className="error_description">{error}</p>
  </div>
);

ErrorState.propTypes = {
  error: PropTypes.string,
};

ErrorState.defaultProps = {
  error: '',
};

export default ErrorState;

Version data entries

149 entries across 149 versions & 2 rubygems

Version Path
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-9.0.51 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-8.0.51 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-7.0.48 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-7.0.47 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js