From 91d197b6b7066c3f37b3dbd54b2b3416e6f21bec Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Wed, 21 Dec 2022 16:10:24 -0500 Subject: [PATCH] Remove the separate dialogContent declaration & inline Fixes "React error #130" in production build when trying to open dialog. refs #19438 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- .../inputs/directory-array-input.tsx | 46 ++++++++---------- .../inputs/file-array-input.tsx | 48 +++++++++---------- .../run-process-panel/inputs/file-input.tsx | 23 ++++----- 3 files changed, 51 insertions(+), 66 deletions(-) diff --git a/src/views/run-process-panel/inputs/directory-array-input.tsx b/src/views/run-process-panel/inputs/directory-array-input.tsx index e64dca0e49..27255bd961 100644 --- a/src/views/run-process-panel/inputs/directory-array-input.tsx +++ b/src/views/run-process-panel/inputs/directory-array-input.tsx @@ -267,7 +267,27 @@ const DirectoryArrayInputComponent = connect(mapStateToProps)( maxWidth='md' > Choose collections - +
+
+ +
+ +
+ Selected collections ({this.state.directories.length}): + directory.name} /> +
+
+
@@ -280,30 +300,6 @@ const DirectoryArrayInputComponent = connect(mapStateToProps)( ); - dialogContent = withStyles(this.dialogContentStyles)( - ({ classes }: WithStyles) => -
-
- -
- -
- Selected collections ({this.state.directories.length}): - directory.name} /> -
-
- ); - }); type DialogContentCssRules = 'root' | 'pickerWrapper' | 'tree' | 'divider' | 'chips'; diff --git a/src/views/run-process-panel/inputs/file-array-input.tsx b/src/views/run-process-panel/inputs/file-array-input.tsx index 0be8f19fed..a2f884e3e6 100644 --- a/src/views/run-process-panel/inputs/file-array-input.tsx +++ b/src/views/run-process-panel/inputs/file-array-input.tsx @@ -249,7 +249,28 @@ const FileArrayInputComponent = connect(mapStateToProps)( maxWidth='md' > Choose files - +
+
+ +
+ +
+ Selected files ({this.state.files.length}): + file.name} /> +
+
+
@@ -262,31 +283,6 @@ const FileArrayInputComponent = connect(mapStateToProps)( ); - dialogContent = withStyles(this.dialogContentStyles)( - ({ classes }: WithStyles) => -
-
- -
- -
- Selected files ({this.state.files.length}): - file.name} /> -
-
- ); - }); type DialogContentCssRules = 'root' | 'pickerWrapper' | 'tree' | 'divider' | 'chips'; diff --git a/src/views/run-process-panel/inputs/file-input.tsx b/src/views/run-process-panel/inputs/file-input.tsx index 218bf4189c..b0206e1452 100644 --- a/src/views/run-process-panel/inputs/file-input.tsx +++ b/src/views/run-process-panel/inputs/file-input.tsx @@ -138,7 +138,14 @@ const FileInputComponent = connect()( maxWidth='md'> Choose a file - +
+ +
@@ -150,18 +157,4 @@ const FileInputComponent = connect()( ); - - dialogContent = withStyles(this.dialogContentStyles)( - ({ classes }: WithStyles) => -
- -
- ); - - }); -- 2.30.2