Sha256: 6373a0735aa1bde224ee58f3e94e3131f86630fc525c05b497b93984d2fc5c32

Contents?: true

Size: 550 Bytes

Versions: 2

Compression:

Stored size: 550 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { Icon, Button } from 'patternfly-react';

const AddTableEntry = ({ hidden, disabled, onAddTableEntry }) => {
  if (hidden) {
    return null;
  }

  return (
    <Button bsStyle="default" disabled={disabled} onClick={onAddTableEntry}>
      <Icon type="fa" name="plus" />
    </Button>
  );
};

AddTableEntry.propTypes = {
  hidden: PropTypes.bool.isRequired,
  disabled: PropTypes.bool.isRequired,
  onAddTableEntry: PropTypes.func.isRequired,
};

export default AddTableEntry;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 webpack/components/common/AddTableEntry.js
foreman_acd-0.10.0 webpack/components/common/AddTableEntry.js