Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Commit 06a676a

Browse files
author
Ben Junya
authored
Add flex-column class to configonly ship (#1004)
Add flex-column class to configonly ship
2 parents a043169 + 2b13305 commit 06a676a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

web/init/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@replicatedhq/ship-init",
3-
"version": "1.6.5",
3+
"version": "1.6.6",
44
"description": "Shared component that contains the Ship Init app",
55
"author": "Replicated, Inc.",
66
"license": "Apache-2.0",

web/init/src/ErrorBoundary.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
2+
import classNames from "classnames";
33
/**
44
* Creates an error boundary for any child component rendered inside
55
*/
@@ -26,10 +26,10 @@ export default class ErrorBoundary extends React.Component {
2626
}
2727

2828
render() {
29-
const { children } = this.props;
29+
const { children, className } = this.props;
3030
const { hasError, error } = this.state;
3131
return (
32-
<div className="flex flex1">
32+
<div className={classNames("flex flex1", className)}>
3333
{hasError && <div>{error.toString()}</div>}
3434
{children}
3535
</div>

web/init/src/components/config_only/ConfigOnly.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default class ConfigOnly extends React.Component {
193193

194194
return (
195195
<Layout configOnly={true} configRouteId={routeId}>
196-
<ErrorBoundary>
196+
<ErrorBoundary className="flex-column">
197197
<div className="flex-column flex1">
198198
<div className="flex-column flex1 u-overflow--hidden u-position--relative">
199199
<Toast toast={toastDetails} onCancel={this.cancelToast} />

0 commit comments

Comments
 (0)