export studyListTableRow from @ohif/ui

This commit is contained in:
dannyrb 2020-05-13 00:30:33 -04:00 committed by James A. Petts
parent 734bd9803d
commit c1d399d543
4 changed files with 17 additions and 14 deletions

View File

@ -41,6 +41,7 @@ export {
StudyListFilter, StudyListFilter,
StudyListPagination, StudyListPagination,
StudyListTable, StudyListTable,
StudyListTableRow,
Svg, Svg,
Table, Table,
TableBody, TableBody,

View File

@ -5,19 +5,17 @@ import StudyListTableRow from './StudyListTableRow';
const StudyListTable = ({ tableDataSource }) => { const StudyListTable = ({ tableDataSource }) => {
return ( return (
<> <div className="bg-black">
<div className="bg-black"> <div className="container m-auto relative">
<div className="container m-auto relative"> <table className="w-full text-white">
<table className="w-full text-white"> <tbody>
<tbody> {tableDataSource.map((tableData, i) => {
{tableDataSource.map((tableData, i) => { return <StudyListTableRow tableData={tableData} key={i} />;
return <StudyListTableRow tableData={tableData} key={i} />; })}
})} </tbody>
</tbody> </table>
</table>
</div>
</div> </div>
</> </div>
); );
}; };

View File

@ -1,3 +1,6 @@
import StudyListTable from './StudyListTable'; import StudyListTable from './StudyListTable.js';
import StudyListTableRow from './StudyListTableRow.js';
export default StudyListTable; export default StudyListTable;
export { StudyListTable, StudyListTableRow };

View File

@ -22,7 +22,7 @@ import SidePanel from './SidePanel';
import StudyBrowser from './StudyBrowser'; import StudyBrowser from './StudyBrowser';
import StudyListExpandedRow from './StudyListExpandedRow'; import StudyListExpandedRow from './StudyListExpandedRow';
import StudyListPagination from './StudyListPagination'; import StudyListPagination from './StudyListPagination';
import StudyListTable from './StudyListTable'; import { StudyListTable, StudyListTableRow } from './StudyListTable';
import Svg from './Svg'; import Svg from './Svg';
import StudyItem from './StudyItem'; import StudyItem from './StudyItem';
import StudyListFilter from './StudyListFilter'; import StudyListFilter from './StudyListFilter';
@ -72,6 +72,7 @@ export {
StudyListFilter, StudyListFilter,
StudyListPagination, StudyListPagination,
StudyListTable, StudyListTable,
StudyListTableRow,
Svg, Svg,
Table, Table,
TableBody, TableBody,