21508: Remove image preview from io panel
authorStephen Smith <stephen@curii.com>
Mon, 1 Apr 2024 14:41:35 +0000 (10:41 -0400)
committerStephen Smith <stephen@curii.com>
Tue, 2 Apr 2024 00:41:35 +0000 (20:41 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

services/workbench2/src/views/process-panel/process-io-card.tsx

index e7eb43c24cc26771b9a09b2a231ca8437f576dcc..fcc6d6493b1ea35b0c1008f22d817c5b25dfcc4b 100644 (file)
@@ -573,17 +573,6 @@ interface ProcessValuePreviewProps {
 
 const ProcessValuePreview = withStyles(styles)(({ value, showImagePreview, classes }: ProcessValuePreviewProps & WithStyles<CssRules>) => (
     <Typography className={classes.paramValue}>
-        {value.imageUrl && showImagePreview ? (
-            <img
-                className={classes.imagePreview}
-                src={value.imageUrl}
-                crossOrigin="anonymous"
-                alt="Inline Preview"
-            />
-        ) : (
-            ""
-        )}
-        {value.imageUrl && !showImagePreview ? <ImagePlaceholder /> : ""}
         <span className={classNames(classes.valArray, value.secondary && classes.secondaryVal)}>{value.display}</span>
     </Typography>
 ));
@@ -927,9 +916,3 @@ const UnsupportedValueChip = withStyles(styles)(({ classes }: WithStyles<CssRule
         label={"Cannot display value"}
     />
 ));
-
-const ImagePlaceholder = withStyles(styles)(({ classes }: WithStyles<CssRules>) => (
-    <span className={classes.imagePlaceholder}>
-        <ImageIcon />
-    </span>
-));