Sha256: ff6d45ec3471ea33063a3f0a21e7916e9446776779aaf572f5bc7127308a76b4
Contents?: true
Size: 1.12 KB
Versions: 9
Compression:
Stored size: 1.12 KB
Contents
import React from 'react'; import { Icon } from 'patternfly-react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; const InvocationStatus = ({ status }) => { switch (status) { case 'error': return ( <div> <Icon type="pf" name="error-circle-o" /> {__('failed')} </div> ); case 'warning': return ( <div> <Icon type="pf" name="warning-triangle-o" /> {__('warning')} </div> ); case 'success': return ( <div> <Icon type="pf" name="ok" /> {__('success')} </div> ); case 'cancelled': return ( <div> <Icon type="fa" name="ban" /> {__('cancelled')} </div> ); case 'running': return ( <div> <Icon type="pf" name="in-progress" /> {__('running')} </div> ); default: return ( <div> <Icon type="pf" name="pending" /> {__('pending')} </div> ); } }; InvocationStatus.propTypes = { status: PropTypes.string.isRequired, }; export default InvocationStatus;
Version data entries
9 entries across 9 versions & 1 rubygems