Skip to content

Commit 25875d3

Browse files
committed
Prettier error
1 parent 67b6db3 commit 25875d3

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};
@@ -21,13 +22,15 @@ export function ErrorBlock({ error, showTrace }: ErrorBlockProps): JSX.Element {
2122
<FaExclamationTriangle />
2223
Something went wrong
2324
</BiggerText>
24-
<CodeBlock>{error.message}</CodeBlock>
25-
{showTrace && (
26-
<>
27-
<span>Stack trace:</span>
28-
<CodeBlock>{error.stack}</CodeBlock>
29-
</>
30-
)}
25+
<Column>
26+
<CodeBlock>{error.message}</CodeBlock>
27+
{showTrace && (
28+
<>
29+
Stack trace:
30+
<CodeBlock>{error.stack}</CodeBlock>
31+
</>
32+
)}
33+
</Column>
3134
</ErrorLookBig>
3235
);
3336
}

0 commit comments

Comments
 (0)