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-5.0.28 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.27 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.26 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.26 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.25.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.25 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.25 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.24.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.24.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.24 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.24 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.23 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.23 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.22 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.22 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-4.0.21.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.21.1 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.21 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.20 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
foreman_rh_cloud-3.0.19 webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js