Sha256: 444f954583e44ed3b100296190d740d1fbbe51e1eb35aabc9b1eb1c55554e52b

Contents?: true

Size: 349 Bytes

Versions: 22

Compression:

Stored size: 349 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { CheckIcon, BanIcon } from '@patternfly/react-icons';

const EnabledCell = ({ condition }) =>
  condition ? <CheckIcon /> : <BanIcon />;

EnabledCell.propTypes = {
  condition: PropTypes.bool,
};

EnabledCell.defaultProps = {
  condition: false,
};

export default EnabledCell;

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_webhooks-0.0.2 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/Components/EnabledCell.js
foreman_webhooks-0.0.1 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhooksTable/Components/EnabledCell.js