({ extensions, getComponent })
| 2 | import PropTypes from "prop-types" |
| 3 | |
| 4 | export const OperationExt = ({ extensions, getComponent }) => { |
| 5 | let OperationExtRow = getComponent("OperationExtRow") |
| 6 | return ( |
| 7 | <div className="opblock-section"> |
| 8 | <div className="opblock-section-header"> |
| 9 | <h4>Extensions</h4> |
| 10 | </div> |
| 11 | <div className="table-container"> |
| 12 | |
| 13 | <table> |
| 14 | <thead> |
| 15 | <tr> |
| 16 | <td className="col_header">Field</td> |
| 17 | <td className="col_header">Value</td> |
| 18 | </tr> |
| 19 | </thead> |
| 20 | <tbody> |
| 21 | { |
| 22 | extensions.entrySeq().map(([k, v]) => <OperationExtRow key={`${k}-${v}`} xKey={k} xVal={v} />) |
| 23 | } |
| 24 | </tbody> |
| 25 | </table> |
| 26 | </div> |
| 27 | </div> |
| 28 | ) |
| 29 | } |
| 30 | OperationExt.propTypes = { |
| 31 | extensions: PropTypes.object.isRequired, |
| 32 | getComponent: PropTypes.func.isRequired |
nothing calls this directly
no test coverage detected
searching dependent graphs…