Sha256: dc7427a4fda04c898926718c5b343928fac57818a72010d465aabbbf8334fbfb
Contents?: true
Size: 507 Bytes
Versions: 148
Compression:
Stored size: 507 Bytes
Contents
import React from 'react'; import { Link } from 'react-router-dom'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; export const subscriptionNameFormatter = (value, { rowData }) => { let cellContent; if (rowData.collapsible) { cellContent = (rowData.name); } else { cellContent = ( <Link to={urlBuilder('subscriptions', '', rowData.id)}>{rowData.name}</Link> ); } return ( <td> {cellContent} </td> ); }; export default subscriptionNameFormatter;
Version data entries
148 entries across 148 versions & 1 rubygems