From c1d399d543b1c7bf9138ce8bc4c33899d34cb733 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Wed, 13 May 2020 00:30:33 -0400 Subject: [PATCH] export studyListTableRow from @ohif/ui --- platform/ui/index.js | 1 + .../StudyListTable/StudyListTable.js | 22 +++++++++---------- .../ui/src/components/StudyListTable/index.js | 5 ++++- platform/ui/src/components/index.js | 3 ++- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/platform/ui/index.js b/platform/ui/index.js index 0ab595a6d..49fd61f4b 100644 --- a/platform/ui/index.js +++ b/platform/ui/index.js @@ -41,6 +41,7 @@ export { StudyListFilter, StudyListPagination, StudyListTable, + StudyListTableRow, Svg, Table, TableBody, diff --git a/platform/ui/src/components/StudyListTable/StudyListTable.js b/platform/ui/src/components/StudyListTable/StudyListTable.js index 897c7135e..1e8f11c51 100644 --- a/platform/ui/src/components/StudyListTable/StudyListTable.js +++ b/platform/ui/src/components/StudyListTable/StudyListTable.js @@ -5,19 +5,17 @@ import StudyListTableRow from './StudyListTableRow'; const StudyListTable = ({ tableDataSource }) => { return ( - <> -
-
- - - {tableDataSource.map((tableData, i) => { - return ; - })} - -
-
+
+
+ + + {tableDataSource.map((tableData, i) => { + return ; + })} + +
- +
); }; diff --git a/platform/ui/src/components/StudyListTable/index.js b/platform/ui/src/components/StudyListTable/index.js index df4b23cae..c4a0f805b 100644 --- a/platform/ui/src/components/StudyListTable/index.js +++ b/platform/ui/src/components/StudyListTable/index.js @@ -1,3 +1,6 @@ -import StudyListTable from './StudyListTable'; +import StudyListTable from './StudyListTable.js'; +import StudyListTableRow from './StudyListTableRow.js'; export default StudyListTable; + +export { StudyListTable, StudyListTableRow }; diff --git a/platform/ui/src/components/index.js b/platform/ui/src/components/index.js index b5825a9b6..de8b4e48e 100644 --- a/platform/ui/src/components/index.js +++ b/platform/ui/src/components/index.js @@ -22,7 +22,7 @@ import SidePanel from './SidePanel'; import StudyBrowser from './StudyBrowser'; import StudyListExpandedRow from './StudyListExpandedRow'; import StudyListPagination from './StudyListPagination'; -import StudyListTable from './StudyListTable'; +import { StudyListTable, StudyListTableRow } from './StudyListTable'; import Svg from './Svg'; import StudyItem from './StudyItem'; import StudyListFilter from './StudyListFilter'; @@ -72,6 +72,7 @@ export { StudyListFilter, StudyListPagination, StudyListTable, + StudyListTableRow, Svg, Table, TableBody,