feat(grid): remove viewportIndex and only rely on viewportId (#3591)
Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
This commit is contained in:
1 parent
5dafac7c92
commit
4c6ff873e8
83 files changed
+1309
-1123
No files matched your search
@@ -18,15 +18,12 @@ export default function getPanelModule({
|
||||
extensionManager: ExtensionManager;
|
||||
}) {
|
||||
const wrappedMeasurementPanel = () => {
|
||||
const [
|
||||
{ activeViewportIndex, viewports },
|
||||
viewportGridService,
|
||||
] = useViewportGrid();
|
||||
const [{ activeViewportId, viewports }] = useViewportGrid();
|
||||
|
||||
return (
|
||||
<MicroscopyPanel
|
||||
viewports={viewports}
|
||||
activeViewportIndex={activeViewportIndex}
|
||||
activeViewportId={activeViewportId}
|
||||
onSaveComplete={() => {}}
|
||||
onRejectComplete={() => {}}
|
||||
commandsManager={commandsManager}
|
||||
|
||||
Reference in new issue
Block a user