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

33 lines
880 B
TypeScript
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 data-cy="study-list-results">
2020-05-13 00:30:33 -04:00
{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;