-
Notifications
You must be signed in to change notification settings - Fork 67
/
FailedTrace.tsx
30 lines (27 loc) 路 1.05 KB
/
FailedTrace.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {Typography} from 'antd';
import {DISCORD_URL, GITHUB_ISSUES_URL} from 'constants/Common.constants';
import TestRun from 'models/TestRun.model';
import * as S from './FailedTrace.styled';
interface IProps {
isDisplayingError: boolean;
run: TestRun;
}
const FailedTrace = ({isDisplayingError, run: {lastErrorState}}: IProps) => {
return isDisplayingError ? (
<S.FailedTrace>
<S.Container>
<S.FailedIcon />
<S.TextContainer>
<Typography.Title level={1}>Test Run Failed</Typography.Title>
<Typography.Text type="secondary">{lastErrorState}</Typography.Text>
<Typography.Text type="secondary">
Please let us know about this issue - <a href={GITHUB_ISSUES_URL}>create an issue</a> or contact us via{' '}
<a href={DISCORD_URL}>Discord</a>.
</Typography.Text>
<Typography.Text type="secondary">We will check it out and respond to you.</Typography.Text>
</S.TextContainer>
</S.Container>
</S.FailedTrace>
) : null;
};
export default FailedTrace;