Sha256: 39386363465e2d0cf0977c55fe15e981f08523b3688a28c4f1d621f8e7bfa3b6
Contents?: true
Size: 752 Bytes
Versions: 2
Compression:
Stored size: 752 Bytes
Contents
import React from 'react'; import EmptyInfoItem from './EmptyInfoItem'; import StringInfoItem from './StringInfoItem'; export const itemIteratorId = (entry, ...rest) => `${entry.id}-${entry.preupgradeReportId}-${rest.join('-')}`; export const additionalInfo = entry => { const infoAttrs = ['title', 'severity']; return infoAttrs.map(attr => { const key = itemIteratorId(entry, attr); if (!entry[attr]) { return <EmptyInfoItem entry={entry} attr={attr} key={key} />; } switch (attr) { case 'title': return <StringInfoItem entry={entry} attr={attr} key={key} />; case 'severity': return <StringInfoItem entry={entry} attr={attr} key={key} />; default: return ''; } }); };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_leapp-0.0.5 | webpack/components/PreupgradeReportsList/components/helpers.js |
foreman_leapp-0.0.4 | webpack/components/PreupgradeReportsList/components/helpers.js |