Files
ohif-viewer/platform/ui/src/components/StudyListTable/StudyListTable.js
T

33 lines
851 B
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import StudyListTableRow from './StudyListTableRow';
const StudyListTable = ({ tableDataSource }) => {
return (
2020-05-13 00:30:33 -04:00
<div className="bg-black">
<div className="container m-auto relative">
<table className="w-full text-white">
<tbody>
{tableDataSource.map((tableData, i) => {
return <StudyListTableRow tableData={tableData} key={i} />;
})}
</tbody>
</table>
</div>
2020-05-13 00:30:33 -04:00
</div>
);
};
StudyListTable.propTypes = {
tableDataSource: PropTypes.arrayOf(
PropTypes.shape({
row: PropTypes.array.isRequired,
expandedContent: PropTypes.node.isRequired,
onClickRow: PropTypes.func.isRequired,
isExpanded: PropTypes.bool.isRequired,
})
),
};
export default StudyListTable;