update docz examples to match new component api
This commit is contained in:
parent
d7cdc1c3ba
commit
50d0144e78
@ -5,7 +5,7 @@ route: components/viewport-pane
|
||||
---
|
||||
|
||||
import { Playground, Props } from 'docz';
|
||||
import { DragAndDropContext, ViewportGrid, ViewportPane } from '@ohif/ui';
|
||||
import { DragAndDropProvider, ViewportGrid, ViewportPane } from '@ohif/ui';
|
||||
|
||||
# ViewportPane
|
||||
|
||||
@ -21,12 +21,12 @@ import { ViewportPane } from '@ohif/ui';
|
||||
|
||||
<Playground>
|
||||
<div className="p-4 h-56">
|
||||
<DragAndDropContext>
|
||||
<DragAndDropProvider>
|
||||
<ViewportGrid numRows={1} numCols={2}>
|
||||
<ViewportPane onDrop={() => {}} isActive={true}><h3>Hello</h3></ViewportPane>
|
||||
<ViewportPane onDrop={() => {}} isActive={false}><h3>World</h3></ViewportPane>
|
||||
</ViewportGrid>
|
||||
</DragAndDropContext>
|
||||
</DragAndDropProvider>
|
||||
</div>
|
||||
</Playground>
|
||||
|
||||
|
||||
@ -147,15 +147,7 @@ components.
|
||||
row: [
|
||||
{
|
||||
key: 'patientName',
|
||||
content: (
|
||||
<>
|
||||
<Icon
|
||||
name={isExpanded ? 'chevron-down' : 'chevron-right'}
|
||||
className="mr-4"
|
||||
/>
|
||||
{PatientName}
|
||||
</>
|
||||
),
|
||||
content: PatientName,
|
||||
gridCol: 4,
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user