Sha256: 378cd67be23878561828348395e6e4bd026435d125a41b6c19d487ec4b1384a1
Contents?: true
Size: 1.33 KB
Versions: 39
Compression:
Stored size: 1.33 KB
Contents
import React from 'react'; import { Link } from 'react-router-dom'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { translate as __ } from 'foremanReact/common/I18n'; import { headerFormatter, cellFormatter, } from '../../move_to_foreman/components/common/table'; const TableSchema = [ { property: 'name', header: { label: __('Name'), formatters: [headerFormatter], }, cell: { formatters: [ (value, { rowData }) => ( <td> <Link to={urlBuilder('module_streams', '', rowData.id)}>{rowData.name}</Link> </td> ), ], }, }, { property: 'stream', header: { label: __('Stream'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, { property: 'version', header: { label: __('Version'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, { property: 'context', header: { label: __('Context'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, { property: 'arch', header: { label: __('Arch'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, ]; export default TableSchema;
Version data entries
39 entries across 39 versions & 1 rubygems