From 66e3aea7733d61e50c7ad6f9ffdb089dd5ff72b9 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Thu, 14 May 2020 22:24:50 -0400 Subject: [PATCH] update Viewer example to use updated components --- platform/ui/src/views/Viewer/Viewer.mdx | 245 +++++++++++------------- 1 file changed, 111 insertions(+), 134 deletions(-) diff --git a/platform/ui/src/views/Viewer/Viewer.mdx b/platform/ui/src/views/Viewer/Viewer.mdx index 28cdc6825..2fe84513d 100644 --- a/platform/ui/src/views/Viewer/Viewer.mdx +++ b/platform/ui/src/views/Viewer/Viewer.mdx @@ -17,9 +17,11 @@ import { IconButton, StudyBrowser, ViewportActionBar, - ViewportGrid, Notification, + DragAndDropProvider, Viewport, + ViewportGrid, + ViewportPane, } from '@ohif/ui'; import Header from './components/Header'; @@ -50,141 +52,116 @@ import { tabs } from './studyBrowserMockData'; onEdit: (id) => alert(`Edit: ${id}`), }; return ( -
-
-
- - ) - }} - /> -
-
- -
-
- alert(`Series ${direction}`)} - studyData={{ - label: 'A', - isTracked: true, - isLocked: false, - studyDate: '07-Sep-2011', - currentSeries: 1, - seriesDescription: - 'Series description lorem ipsum dolor sit Series description lorem ipsum dolor sit Series description lorem ipsum dolor sit ', - modality: 'CT', - patientInformation: { - patientName: 'Smith, Jane', - patientSex: 'F', - patientAge: '59', - MRN: '10000001', - thickness: '5.0mm', - spacing: '1.25mm', - scanner: 'Aquilion', - }, - }} - > -
- CONTENT -
- , - alert(`Series ${direction}`)} - studyData={{ - label: 'A', - isTracked: false, - isLocked: true, - studyDate: '07-Sep-2010', - currentSeries: 2, - seriesDescription: - 'Series description lorem ipsum dolor sit Series description lorem ipsum dolor sit Series description lorem ipsum dolor sit ', - modality: 'SR', - patientInformation: { - patientName: 'Smith, Jane', - patientSex: 'F', - patientAge: '59', - MRN: '10000001', - thickness: '2.0mm', - spacing: '1.25mm', - scanner: 'Aquilion', - }, - }} - > -
- CONTENT -
-
, - ]} - setActiveViewportIndex={setActiveViewportIndex} - activeViewportIndex={activeViewportIndex} - /> -
-
- - alert('Export')}> - - - - - - - - } - /> - ) - }} - /> +
+ CONTENT +
+ + ) + )} + +
+
+ + alert('Export')}> + + + + + + + + } + /> + ) + }} + /> + - + ); }}