Sha256: abc671d5be63af1022678453de4ffb78d18613b392d339d4f1b5ee748532be23

Contents?: true

Size: 585 Bytes

Versions: 152

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

152 entries across 152 versions & 2 rubygems

Version Path
foreman_rh_cloud-1.0.8 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-2.0.8 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-0.9.7 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-1.0.7 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-2.0.7 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-0.9.6 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-1.0.6 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-2.0.6 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-0.9.5 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-1.0.5 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-2.0.5 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-0.9.4.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-1.0.4.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-1.0.4 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-2.0.4 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-0.9.4 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_inventory_upload-2.0.4.pre.2 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_inventory_upload-2.0.4.pre.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_inventory_upload-2.0.3 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_inventory_upload-1.0.3 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js