Sha256: f6d21e8455e7034898d4d5100d1d0cc1f51570ab20412ad86f2cce791aad7f70
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
import React from 'react'; import { Table, } from 'patternfly-react'; // Some small helper methods function arrayToObject(arr, id, value) { var rv = {}; for (var i = 0; i < arr.length; ++i) rv[arr[i][id]] = arr[i][value]; return rv; } function arrayToObjectObj(arr, id) { var rv = {}; for (var i = 0; i < arr.length; ++i) rv[arr[i][id]] = arr[i]; return rv; } function EasyHeaderFormatter(value, { column }) { return ( <Table.Heading aria-label={column.header.label} {...column.header.props}> {value} </Table.Heading> ); } export { arrayToObject, arrayToObjectObj, EasyHeaderFormatter };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_acd-0.7.0 | webpack/helper.js |