From: Peter Amstutz Date: Wed, 21 Dec 2022 21:10:24 +0000 (-0500) Subject: Remove the separate dialogContent declaration & inline X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/91d197b6b7066c3f37b3dbd54b2b3416e6f21bec?ds=sidebyside 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 --- 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) => -
- -
- ); - - });