Skip to content

Commit 8139e50

Browse files
committed
Prettier error
1 parent ea038c1 commit 8139e50

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

data-browser/src/components/ErrorLook.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { lighten } from 'polished';
22
import styled from 'styled-components';
33
import React from 'react';
44
import { FaExclamationTriangle } from 'react-icons/fa';
5+
import { Column } from './Row';
56

67
export const ErrorLook = styled.span`
78
color: ${props => props.theme.colors.alert};
@@ -20,13 +21,15 @@ export function ErrorBlock({ error, showTrace }: ErrorBlockProps): JSX.Element {
2021
<FaExclamationTriangle />
2122
Something went wrong
2223
</BiggerText>
23-
<CodeBlock>{error.message}</CodeBlock>
24-
{showTrace && (
25-
<>
26-
<span>Stack trace:</span>
27-
<CodeBlock>{error.stack}</CodeBlock>
28-
</>
29-
)}
24+
<Column>
25+
<CodeBlock>{error.message}</CodeBlock>
26+
{showTrace && (
27+
<>
28+
Stack trace:
29+
<CodeBlock>{error.stack}</CodeBlock>
30+
</>
31+
)}
32+
</Column>
3033
</ErrorLookBig>
3134
);
3235
}

0 commit comments

Comments
 (0)