Sha256: 93a5803cfba67c64c95d046d2420e7d2070bce601bef2b86607eb21c57d015ee
Contents?: true
Size: 847 Bytes
Versions: 119
Compression:
Stored size: 847 Bytes
Contents
import React from 'react'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { translate as __ } from 'foremanReact/common/I18n'; import { headerFormatter, cellFormatter, } from '../../../components/pf3Table'; const TableSchema = [ { property: 'name', header: { label: __('Name'), formatters: [headerFormatter], }, cell: { formatters: [ (value, { rowData }) => ( <td> <a href={urlBuilder(`products/${rowData.product_id}/repositories`, '', rowData.id)}> {rowData.name} </a> </td> ), ], }, }, { property: 'product_name', header: { label: __('Product'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, ]; export default TableSchema;
Version data entries
119 entries across 119 versions & 1 rubygems