This repository was archived by the owner on Mar 24, 2023. It is now read-only.
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @replicatedhq/ship-init" ,
3
- "version" : " 1.6.5 " ,
3
+ "version" : " 1.6.6 " ,
4
4
"description" : " Shared component that contains the Ship Init app" ,
5
5
"author" : " Replicated, Inc." ,
6
6
"license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
-
2
+ import classNames from "classnames" ;
3
3
/**
4
4
* Creates an error boundary for any child component rendered inside
5
5
*/
@@ -26,10 +26,10 @@ export default class ErrorBoundary extends React.Component {
26
26
}
27
27
28
28
render ( ) {
29
- const { children } = this . props ;
29
+ const { children, className } = this . props ;
30
30
const { hasError, error } = this . state ;
31
31
return (
32
- < div className = "flex flex1" >
32
+ < div className = { classNames ( "flex flex1" , className ) } >
33
33
{ hasError && < div > { error . toString ( ) } </ div > }
34
34
{ children }
35
35
</ div >
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export default class ConfigOnly extends React.Component {
193
193
194
194
return (
195
195
< Layout configOnly = { true } configRouteId = { routeId } >
196
- < ErrorBoundary >
196
+ < ErrorBoundary className = "flex-column" >
197
197
< div className = "flex-column flex1" >
198
198
< div className = "flex-column flex1 u-overflow--hidden u-position--relative" >
199
199
< Toast toast = { toastDetails } onCancel = { this . cancelToast } />
You can’t perform that action at this time.
0 commit comments