From d616170afa771255c7515637feb0f8d63ae1e75d Mon Sep 17 00:00:00 2001 From: sedghi Date: Tue, 17 Dec 2024 12:37:35 -0500 Subject: [PATCH] final migration --- .../src/viewports/_getStatusComponent.tsx | 4 ++-- .../src/viewports/_getStatusComponent.tsx | 4 ++-- .../components/OHIFCornerstoneSRMeasurementViewport.tsx | 6 +++--- .../src/panels/DynamicVolumeControls.tsx | 4 ++-- .../src/components/DicomUpload/DicomUploadProgress.tsx | 4 ++-- .../components/DicomUpload/DicomUploadProgressItem.tsx | 8 ++++---- .../WindowLevelActionMenu/VolumeRenderingPresets.tsx | 2 +- .../VolumeRenderingPresetsContent.tsx | 2 +- .../src/Components/DataSourceConfigurationComponent.tsx | 3 ++- .../Components/DataSourceConfigurationModalComponent.tsx | 4 ++-- extensions/default/src/Components/ItemListComponent.tsx | 2 +- platform/app/src/routes/Debug.tsx | 2 +- platform/ui-next/src/components/Header/Header.tsx | 2 +- platform/ui-next/src/components/Icons/Icons.tsx | 2 +- .../ui/src/components/AdvancedToolbox/AdvancedToolbox.tsx | 2 +- platform/ui/src/components/AllInOneMenu/BackItem.tsx | 2 +- platform/ui/src/components/AllInOneMenu/IconMenu.tsx | 2 +- platform/ui/src/components/AllInOneMenu/SubMenu.tsx | 6 +++--- platform/ui/src/components/CheckBox/CheckBox.tsx | 4 ++-- platform/ui/src/components/CinePlayer/CinePlayer.tsx | 2 +- platform/ui/src/components/ContextMenu/ContextMenu.tsx | 2 +- .../DisplaySetMessageListTooltip.tsx | 2 +- platform/ui/src/components/Dropdown/Dropdown.tsx | 4 ++-- .../ExpandableToolbarButton/ExpandableToolbarButton.tsx | 2 +- platform/ui/src/components/Header/Header.tsx | 2 +- .../components/HeaderPatientInfo/HeaderPatientInfo.tsx | 2 +- platform/ui/src/components/InputNumber/InputNumber.tsx | 6 +++--- platform/ui/src/components/LayoutPreset/LayoutPreset.tsx | 2 +- platform/ui/src/components/Notification/Notification.tsx | 2 +- platform/ui/src/components/PanelSection/PanelSection.tsx | 2 +- platform/ui/src/components/PatientInfo/PatientInfo.tsx | 2 +- .../components/ProgressDropdown/ProgressItemDetail.tsx | 2 +- .../SegmentationGroupTable/SegmentationConfig.tsx | 2 +- .../SegmentationGroupTable/SegmentationGroupSegment.tsx | 2 +- platform/ui/src/components/Select/Select.tsx | 4 ++-- .../ui/src/components/SelectTree/SelectTreeBreadcrumb.tsx | 2 +- platform/ui/src/components/SidePanel/SidePanel.tsx | 6 +++--- platform/ui/src/components/Snackbar/SnackbarItem.tsx | 4 ++-- platform/ui/src/components/SplitButton/SplitButton.tsx | 6 +++--- .../src/components/ThumbnailTracked/ThumbnailTracked.tsx | 2 +- .../ui/src/components/ToolbarButton/ToolbarButton.tsx | 2 +- .../src/components/TooltipClipboard/TooltipClipboard.tsx | 2 +- .../components/ViewportActionBar/ViewportActionBar.tsx | 4 ++-- .../ViewportDownloadForm/ViewportDownloadForm.tsx | 5 ++--- 44 files changed, 69 insertions(+), 69 deletions(-) diff --git a/extensions/cornerstone-dicom-rt/src/viewports/_getStatusComponent.tsx b/extensions/cornerstone-dicom-rt/src/viewports/_getStatusComponent.tsx index bd2498a2bd..fcf4de300a 100644 --- a/extensions/cornerstone-dicom-rt/src/viewports/_getStatusComponent.tsx +++ b/extensions/cornerstone-dicom-rt/src/viewports/_getStatusComponent.tsx @@ -9,13 +9,13 @@ export default function _getStatusComponent({ isHydrated, onStatusClick }) { switch (isHydrated) { case true: - StatusIcon = () => ; + StatusIcon = () => ; ToolTipMessage = () =>
This Segmentation is loaded in the segmentation panel
; break; case false: StatusIcon = () => ( - diff --git a/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx b/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx index dabd366d47..1e2f5d7df6 100644 --- a/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx +++ b/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx @@ -9,13 +9,13 @@ export default function _getStatusComponent({ isHydrated, onStatusClick }) { switch (isHydrated) { case true: - StatusIcon = () => ; + StatusIcon = () => ; ToolTipMessage = () =>
This Segmentation is loaded in the segmentation panel
; break; case false: StatusIcon = () => ( - diff --git a/extensions/cornerstone-dicom-sr/src/components/OHIFCornerstoneSRMeasurementViewport.tsx b/extensions/cornerstone-dicom-sr/src/components/OHIFCornerstoneSRMeasurementViewport.tsx index f792c763b9..c4c493d785 100644 --- a/extensions/cornerstone-dicom-sr/src/components/OHIFCornerstoneSRMeasurementViewport.tsx +++ b/extensions/cornerstone-dicom-sr/src/components/OHIFCornerstoneSRMeasurementViewport.tsx @@ -433,7 +433,7 @@ function _getStatusComponent({ switch (state) { case 1: - StatusIcon = () => ; + StatusIcon = () => ; ToolTipMessage = () => (
@@ -444,7 +444,7 @@ function _getStatusComponent({ ); break; case 2: - StatusIcon = () => ; + StatusIcon = () => ; ToolTipMessage = () => (
@@ -458,7 +458,7 @@ function _getStatusComponent({ break; case 3: StatusIcon = () => ( - diff --git a/extensions/cornerstone-dynamic-volume/src/panels/DynamicVolumeControls.tsx b/extensions/cornerstone-dynamic-volume/src/panels/DynamicVolumeControls.tsx index 506ec019a0..b632dfce7c 100644 --- a/extensions/cornerstone-dynamic-volume/src/panels/DynamicVolumeControls.tsx +++ b/extensions/cornerstone-dynamic-volume/src/panels/DynamicVolumeControls.tsx @@ -19,7 +19,7 @@ const Header = ({ title, tooltip }) => ( tight={true} tooltipBoxClassName="max-w-xs p-2" > - @@ -201,7 +201,7 @@ function FrameControls({ className="bg-customblue-30 h-[26px] w-[58px] rounded-[4px]" onClick={() => onPlayPauseChange(!isPlaying)} > - diff --git a/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgress.tsx b/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgress.tsx index 9c4bac2d10..2ab8b23024 100644 --- a/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgress.tsx +++ b/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgress.tsx @@ -314,10 +314,10 @@ function DicomUploadProgress({
{numFails > 0 && (
setShowFailedOnly(currentShowFailedOnly => !currentShowFailedOnly)}> - + >
)}
diff --git a/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx b/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx index 8c0f7db312..d1673d4a0c 100644 --- a/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx +++ b/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx @@ -54,17 +54,17 @@ const DicomUploadProgressItem = memo( switch (dicomFileUploader.getStatus()) { case UploadStatus.Success: return ( - ); case UploadStatus.InProgress: - return ; + return ; case UploadStatus.Failed: - return ; + return ; case UploadStatus.Cancelled: - return ; + return ; default: return <>; } diff --git a/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresets.tsx b/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresets.tsx index b5574311c1..0949cac87c 100644 --- a/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresets.tsx +++ b/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresets.tsx @@ -32,7 +32,7 @@ export function VolumeRenderingPresets({ } - rightIcon={} + rightIcon={} onClick={onClickPresets} /> ); diff --git a/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresetsContent.tsx b/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresetsContent.tsx index 802e638d3c..77853b424e 100644 --- a/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresetsContent.tsx +++ b/extensions/cornerstone/src/components/WindowLevelActionMenu/VolumeRenderingPresetsContent.tsx @@ -61,7 +61,7 @@ export function VolumeRenderingPresetsContent({ handleApply({ preset: preset.name, viewportId }); }} > -
{itemLabelIndex < selectedItems.length ? ( - + ) : ( - + )}
{t(itemLabel)}
diff --git a/extensions/default/src/Components/ItemListComponent.tsx b/extensions/default/src/Components/ItemListComponent.tsx index 4e0e266bbc..c353368454 100644 --- a/extensions/default/src/Components/ItemListComponent.tsx +++ b/extensions/default/src/Components/ItemListComponent.tsx @@ -66,7 +66,7 @@ function ItemListComponent({ diff --git a/platform/app/src/routes/Debug.tsx b/platform/app/src/routes/Debug.tsx index a0f6cde239..0933bd9362 100644 --- a/platform/app/src/routes/Debug.tsx +++ b/platform/app/src/routes/Debug.tsx @@ -18,7 +18,7 @@ function Debug() {

Debug Information

Cross Origin Isolated (COOP/COEP)

- {IconComponent && ( - + )} {option.title} diff --git a/platform/ui-next/src/components/Icons/Icons.tsx b/platform/ui-next/src/components/Icons/Icons.tsx index 6d6dec7190..9cac386e41 100644 --- a/platform/ui-next/src/components/Icons/Icons.tsx +++ b/platform/ui-next/src/components/Icons/Icons.tsx @@ -675,7 +675,7 @@ export const Icons = { Icons[name] = icon; }, - Legacy: ({ name, className, ...props }: { name: string; className?: string }) => { + ByName: ({ name, className, ...props }: { name: string; className?: string }) => { const IconComponent = Icons[name]; if (!IconComponent) { diff --git a/platform/ui/src/components/AdvancedToolbox/AdvancedToolbox.tsx b/platform/ui/src/components/AdvancedToolbox/AdvancedToolbox.tsx index 16fae92a34..aed13ed126 100644 --- a/platform/ui/src/components/AdvancedToolbox/AdvancedToolbox.tsx +++ b/platform/ui/src/components/AdvancedToolbox/AdvancedToolbox.tsx @@ -52,7 +52,7 @@ const AdvancedToolbox = ({ title, items }) => { 'hover:bg-primary-light cursor-pointer hover:cursor-pointer hover:text-black' )} > - +
diff --git a/platform/ui/src/components/AllInOneMenu/BackItem.tsx b/platform/ui/src/components/AllInOneMenu/BackItem.tsx index 93e0600d23..e8c9f16491 100644 --- a/platform/ui/src/components/AllInOneMenu/BackItem.tsx +++ b/platform/ui/src/components/AllInOneMenu/BackItem.tsx @@ -15,7 +15,7 @@ const BackItem = ({ backLabel, onBackClick }: BackItemProps) => { className="all-in-one-menu-item all-in-one-menu-item-effects" onClick={onBackClick} > - +
{backLabel || 'Back to Display Options'}
diff --git a/platform/ui/src/components/AllInOneMenu/IconMenu.tsx b/platform/ui/src/components/AllInOneMenu/IconMenu.tsx index 00a9313bc0..b1662394a8 100644 --- a/platform/ui/src/components/AllInOneMenu/IconMenu.tsx +++ b/platform/ui/src/components/AllInOneMenu/IconMenu.tsx @@ -52,7 +52,7 @@ export default function IconMenu({ className={iconClassName} onClick={toggleMenuVisibility} > - + { onClick={onClickHandler} > {props.itemIcon && ( - + > )}
{props.itemLabel}
- + ); }; diff --git a/platform/ui/src/components/CheckBox/CheckBox.tsx b/platform/ui/src/components/CheckBox/CheckBox.tsx index 51bec1ec20..78ce843dd9 100644 --- a/platform/ui/src/components/CheckBox/CheckBox.tsx +++ b/platform/ui/src/components/CheckBox/CheckBox.tsx @@ -33,9 +33,9 @@ const CheckBox: React.FC<{ onClick={handleClick} > {isChecked ? ( - + ) : ( - + )} = ({ 'border-secondary-light/60 bg-primary-dark inline-flex select-none items-center gap-2 rounded border px-2 py-2' } > - onPlayPauseChange(!isPlaying)} diff --git a/platform/ui/src/components/ContextMenu/ContextMenu.tsx b/platform/ui/src/components/ContextMenu/ContextMenu.tsx index 91d0533fd0..2d65d9ce64 100644 --- a/platform/ui/src/components/ContextMenu/ContextMenu.tsx +++ b/platform/ui/src/components/ContextMenu/ContextMenu.tsx @@ -23,7 +23,7 @@ const ContextMenu = ({ items, ...props }) => { > {item.label} {item.iconRight && ( - diff --git a/platform/ui/src/components/DisplaySetMessageListTooltip/DisplaySetMessageListTooltip.tsx b/platform/ui/src/components/DisplaySetMessageListTooltip/DisplaySetMessageListTooltip.tsx index dcb42c284c..3f1ed3c801 100644 --- a/platform/ui/src/components/DisplaySetMessageListTooltip/DisplaySetMessageListTooltip.tsx +++ b/platform/ui/src/components/DisplaySetMessageListTooltip/DisplaySetMessageListTooltip.tsx @@ -14,7 +14,7 @@ const DisplaySetMessageListTooltip = ({ messages, id }): React.ReactNode => { if (messages?.size()) { return ( <> - setIsOpen(true)} onFocus={() => setIsOpen(true)} diff --git a/platform/ui/src/components/Dropdown/Dropdown.tsx b/platform/ui/src/components/Dropdown/Dropdown.tsx index a2e9b8f377..46a958450b 100644 --- a/platform/ui/src/components/Dropdown/Dropdown.tsx +++ b/platform/ui/src/components/Dropdown/Dropdown.tsx @@ -59,7 +59,7 @@ const Dropdown = ({ data-cy={id} > {!!icon && ( - @@ -96,7 +96,7 @@ const Dropdown = ({
{children} {showDropdownIcon && ( - diff --git a/platform/ui/src/components/ExpandableToolbarButton/ExpandableToolbarButton.tsx b/platform/ui/src/components/ExpandableToolbarButton/ExpandableToolbarButton.tsx index faad3256d7..5488d353e6 100644 --- a/platform/ui/src/components/ExpandableToolbarButton/ExpandableToolbarButton.tsx +++ b/platform/ui/src/components/ExpandableToolbarButton/ExpandableToolbarButton.tsx @@ -54,7 +54,7 @@ const ExpandableToolbarButton = ({ onClick={onClickHandler} key={id} > - +
diff --git a/platform/ui/src/components/Header/Header.tsx b/platform/ui/src/components/Header/Header.tsx index 8c7e1ddf72..79a0319e89 100644 --- a/platform/ui/src/components/Header/Header.tsx +++ b/platform/ui/src/components/Header/Header.tsx @@ -79,7 +79,7 @@ function Header({ size="initial" className="text-primary-active hover:bg-primary-dark h-full w-full" > - +
diff --git a/platform/ui/src/components/HeaderPatientInfo/HeaderPatientInfo.tsx b/platform/ui/src/components/HeaderPatientInfo/HeaderPatientInfo.tsx index ea6d9c712e..aa6bac784b 100644 --- a/platform/ui/src/components/HeaderPatientInfo/HeaderPatientInfo.tsx +++ b/platform/ui/src/components/HeaderPatientInfo/HeaderPatientInfo.tsx @@ -97,7 +97,7 @@ function HeaderPatientInfo({ servicesManager, appConfig }: withAppTypes) { className="hover:bg-primary-dark flex cursor-pointer items-center justify-center gap-1 rounded-lg" onClick={handleOnClick} > - diff --git a/platform/ui/src/components/InputNumber/InputNumber.tsx b/platform/ui/src/components/InputNumber/InputNumber.tsx index 17f8a42add..3512f5c082 100644 --- a/platform/ui/src/components/InputNumber/InputNumber.tsx +++ b/platform/ui/src/components/InputNumber/InputNumber.tsx @@ -130,7 +130,7 @@ const InputNumber: React.FC<{ className={arrowHorizontalClassName} onClick={() => decrement()} > - +
)} increment()} > - +
)} {showAdjustmentArrows && arrowsDirection === 'vertical' && ( @@ -177,7 +177,7 @@ const ArrowButton = ({ onClick, rotate = false }: { onClick: () => void; rotate? className={`text-[#726f7e] ${rotate ? 'rotate-180 transform' : ''}`} onClick={onClick} > - + ); diff --git a/platform/ui/src/components/LayoutPreset/LayoutPreset.tsx b/platform/ui/src/components/LayoutPreset/LayoutPreset.tsx index 18c9fca6be..40519d38c3 100644 --- a/platform/ui/src/components/LayoutPreset/LayoutPreset.tsx +++ b/platform/ui/src/components/LayoutPreset/LayoutPreset.tsx @@ -20,7 +20,7 @@ function LayoutPreset({ }} data-cy={title} > - diff --git a/platform/ui/src/components/Notification/Notification.tsx b/platform/ui/src/components/Notification/Notification.tsx index ec193686c4..8ed7f0fab6 100644 --- a/platform/ui/src/components/Notification/Notification.tsx +++ b/platform/ui/src/components/Notification/Notification.tsx @@ -80,7 +80,7 @@ const Notification = ({ tabIndex={0} >
- diff --git a/platform/ui/src/components/PanelSection/PanelSection.tsx b/platform/ui/src/components/PanelSection/PanelSection.tsx index 7f6c08cb52..59c8cd0bb9 100644 --- a/platform/ui/src/components/PanelSection/PanelSection.tsx +++ b/platform/ui/src/components/PanelSection/PanelSection.tsx @@ -17,7 +17,7 @@ const PanelSection = ({ title, children, actionIcons = [], childrenClassName })
{title}
{actionIcons.map((icon, index) => ( - { diff --git a/platform/ui/src/components/PatientInfo/PatientInfo.tsx b/platform/ui/src/components/PatientInfo/PatientInfo.tsx index 49f750455b..c06c5947c8 100644 --- a/platform/ui/src/components/PatientInfo/PatientInfo.tsx +++ b/platform/ui/src/components/PatientInfo/PatientInfo.tsx @@ -40,7 +40,7 @@ function PatientInfo({ isOpen && (
- diff --git a/platform/ui/src/components/ProgressDropdown/ProgressItemDetail.tsx b/platform/ui/src/components/ProgressDropdown/ProgressItemDetail.tsx index 482da57b41..f6c6710614 100644 --- a/platform/ui/src/components/ProgressDropdown/ProgressItemDetail.tsx +++ b/platform/ui/src/components/ProgressDropdown/ProgressItemDetail.tsx @@ -46,7 +46,7 @@ const ProgressItemDetail = ({ option }: { option: ProgressDropdownOption }): Rea <> {icon && (
- diff --git a/platform/ui/src/components/SegmentationGroupTable/SegmentationConfig.tsx b/platform/ui/src/components/SegmentationGroupTable/SegmentationConfig.tsx index 0ee25777b5..01d7f48ded 100644 --- a/platform/ui/src/components/SegmentationGroupTable/SegmentationConfig.tsx +++ b/platform/ui/src/components/SegmentationGroupTable/SegmentationConfig.tsx @@ -143,7 +143,7 @@ const SegmentationConfig = ({ onClick={() => setIsMinimized(!isMinimized)} className="flex cursor-pointer items-center pl-2 pb-[9px]" > - ( - handleIconClick(e, action)} diff --git a/platform/ui/src/components/Select/Select.tsx b/platform/ui/src/components/Select/Select.tsx index 8bb5fad357..c219d7fe3a 100644 --- a/platform/ui/src/components/Select/Select.tsx +++ b/platform/ui/src/components/Select/Select.tsx @@ -23,9 +23,9 @@ const Option = props => {
{props.isSelected ? ( - + ) : ( - + )}