29 lines
536 B
JavaScript
29 lines
536 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
/* destructure props object */
|
|
function ShapesTableEntry({
|
|
shapeId,
|
|
shapePtLat,
|
|
shapePtLon,
|
|
shapePtSequence,
|
|
}) {
|
|
return (
|
|
<tr>
|
|
<td>{shapeId}</td>
|
|
<td>{shapePtLat}</td>
|
|
<td>{shapePtLon}</td>
|
|
<td>{shapePtSequence}</td>
|
|
</tr>
|
|
);
|
|
}
|
|
|
|
ShapesTableEntry.propTypes = {
|
|
shapeId: PropTypes.string,
|
|
shapePtLat: PropTypes.number,
|
|
shapePtLon: PropTypes.number,
|
|
shapePtSequence: PropTypes.number,
|
|
};
|
|
|
|
export default ShapesTableEntry;
|