Sha256: 92cd8bf4f371cb388495da2de18fca1b6f2ff8509cae382499842ec0b02b1ea4
Contents?: true
Size: 963 Bytes
Versions: 11
Compression:
Stored size: 963 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import withLoading from '../../../components/withLoading'; import IndexTable from '../../../components/IndexTable'; const CvesTable = props => { const columns = [{ title: __('Name') }]; const rows = props.hostgroups.map(hostgroup => ({ cells: [{ title: hostgroup.name }], hostgroup, })); const actions = []; return ( <IndexTable columns={columns} rows={rows} actions={actions} pagination={props.pagination} totalCount={props.totalCount} history={props.history} ariaTableLabel={__('Table of hostgroups for OVAL policy')} /> ); }; CvesTable.propTypes = { hostgroups: PropTypes.array.isRequired, pagination: PropTypes.object.isRequired, totalCount: PropTypes.number.isRequired, history: PropTypes.object.isRequired, }; export default withLoading(CvesTable);
Version data entries
11 entries across 11 versions & 1 rubygems