From 95c036be5c4c600169cde2d2298c665ea43c9da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 20 Dec 2019 23:00:05 +0000 Subject: [PATCH] fix(ui): tweak css for ErrorBoundary component --- ui/src/Components/Grid/index.stories.js | 2 +- ui/src/ErrorBoundary.tsx | 8 ++++---- ui/src/__snapshots__/ErrorBoundary.test.js.snap | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/src/Components/Grid/index.stories.js b/ui/src/Components/Grid/index.stories.js index 4ddf80830..d5ec644e1 100644 --- a/ui/src/Components/Grid/index.stories.js +++ b/ui/src/Components/Grid/index.stories.js @@ -18,7 +18,7 @@ storiesOf("Grid", module) .add("InternalError", () => { return ( diff --git a/ui/src/ErrorBoundary.tsx b/ui/src/ErrorBoundary.tsx index d1dae0826..e9c239af1 100644 --- a/ui/src/ErrorBoundary.tsx +++ b/ui/src/ErrorBoundary.tsx @@ -17,13 +17,13 @@ interface InternalErrorProps { } const InternalError: StatelessComponent = props => ( -
-
-

+
+
+

Internal error

-

+

{props.message}

diff --git a/ui/src/__snapshots__/ErrorBoundary.test.js.snap b/ui/src/__snapshots__/ErrorBoundary.test.js.snap index e9909b532..ce4fdf094 100644 --- a/ui/src/__snapshots__/ErrorBoundary.test.js.snap +++ b/ui/src/__snapshots__/ErrorBoundary.test.js.snap @@ -2,9 +2,9 @@ exports[` matches snapshot 1`] = ` " -

-
-

+
+
+

matches snapshot 1`] = ` Internal error

-

+

Error: Error thrown from problem child