Sha256: ff0d67c006798190c0d07c0ae32bb5187ac05b5da8bdeaf426553a9b473bcbe1
Contents?: true
Size: 991 Bytes
Versions: 27
Compression:
Stored size: 991 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Spinner, OverlayTrigger, Tooltip } from 'patternfly-react'; const EnabledRepositoryContent = ({ loading, disableTooltipId, disableRepository }) => ( <Spinner loading={loading} inline> <OverlayTrigger overlay={<Tooltip id={disableTooltipId}>{__('Disable')}</Tooltip>} placement="bottom" trigger={['hover', 'focus']} rootClose={false} > <button onClick={disableRepository} style={{ backgroundColor: 'initial', border: 'none', color: '#0388ce', }} > <i className={cx('fa-2x', 'fa fa-minus-circle')} /> </button> </OverlayTrigger> </Spinner> ); EnabledRepositoryContent.propTypes = { loading: PropTypes.bool.isRequired, disableTooltipId: PropTypes.string.isRequired, disableRepository: PropTypes.func.isRequired, }; export default EnabledRepositoryContent;
Version data entries
27 entries across 27 versions & 1 rubygems