How to use the @ohif/ui.withModal function in @ohif/ui

To help you get started, weā€™ve selected a few @ohif/ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OHIF / Viewers / platform / viewer / src / connectedComponents / ToolbarRow.js View on Github external
this.setState(state => ({
        dialogId: newDialogId,
        activeButtons: [...state.activeButtons, button],
      }));
    }
  }

  if (options.behavior === 'DOWNLOAD_SCREEN_SHOT') {
    commandsManager.runCommand('showDownloadViewportModal', {
      title: t('Download High Quality Image'),
    });
  }
}

export default withTranslation(['Common', 'ViewportDownloadForm'])(
  withModal(withDialog(ToolbarRow))
);
github OHIF / Viewers / platform / viewer / src / components / Header / Header.js View on Github external
<div>
            <span>
              {t('INVESTIGATIONAL USE ONLY')}
            </span>
            
          </div>
        
      
    );
  }
}

export default withTranslation(['Header', 'AboutModal'])(
  withRouter(withModal(Header))
);

@ohif/ui

A set of React components for Medical Imaging Viewers

MIT
Latest version published 3 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages