feat(segmentation): Enhanced segmentation panel design for TMTV (#3988)
Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
1 parent
e8e209291c
commit
9f3235ff09
51 files changed
+2001
-572
No files matched your search
@@ -21,8 +21,6 @@ export function Toolbar({ servicesManager }) {
|
||||
}
|
||||
|
||||
const { id, Component, componentProps } = toolDef;
|
||||
const { disabled } = componentProps;
|
||||
|
||||
const tool = (
|
||||
<Component
|
||||
key={id}
|
||||
@@ -33,16 +31,7 @@ export function Toolbar({ servicesManager }) {
|
||||
/>
|
||||
);
|
||||
|
||||
return disabled ? (
|
||||
<Tooltip
|
||||
key={id}
|
||||
position="bottom"
|
||||
content={componentProps.label}
|
||||
secondaryContent={'Not available on the current viewport'}
|
||||
>
|
||||
<div className={classnames('mr-1')}>{tool}</div>
|
||||
</Tooltip>
|
||||
) : (
|
||||
return (
|
||||
<div
|
||||
key={id}
|
||||
className="mr-1"
|
||||
|
||||
Reference in new issue
Block a user