Sha256: aff50193d3c8664cb3c0fcf4d4d25b42b6374a41fdee0313cd8316e7e07a8bcb
Contents?: true
Size: 1012 Bytes
Versions: 3
Compression:
Stored size: 1012 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { foremanUrl } from '../../../../../../ForemanRhCloudHelpers'; const Toast = ({ syncHosts, disconnectHosts }) => { const totalHosts = syncHosts + disconnectHosts; return ( <span> <p> {__("Total org's hosts with subscriprion: ")} <strong>{totalHosts}</strong> </p> <p> {__('Successfully synced hosts: ')} <strong>{syncHosts}</strong> </p> <p> {__('Disconnected hosts: ')} <strong>{disconnectHosts}</strong> </p> <p> For more info, please visit the{' '} <a href={foremanUrl('/hosts')} target="_blank" rel="noopener noreferrer" > hosts page </a> </p> </span> ); }; Toast.propTypes = { syncHosts: PropTypes.number.isRequired, disconnectHosts: PropTypes.number.isRequired, }; export default Toast;
Version data entries
3 entries across 3 versions & 1 rubygems