Skip to content

Commit 55c574d

Browse files
committed
feat(benchmarks): use stderr/stdout
1 parent ac9d659 commit 55c574d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/components/Benchmarks/BenchmarkDetail.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import { Listbox, Transition } from '@headlessui/react';
2+
import { CheckIcon, SelectorIcon } from '@heroicons/react/solid';
3+
import Editor from '@monaco-editor/react';
14
import React, { Fragment, useRef, useState } from 'react';
25
import { RouteComponentProps } from 'react-router-dom';
3-
import Header from '../Page/Header';
4-
import Page from '../Page/Page';
5-
import Editor from '@monaco-editor/react';
6+
import useBenchmarkDetail from '../../hooks/benchmark';
67
import useProcessInterval, {
78
useLastSubmissionForUser,
89
} from '../../hooks/submissions';
910
import Result from '../Dashboard/Result';
10-
import { Listbox, Transition } from '@headlessui/react';
11-
import { CheckIcon, SelectorIcon } from '@heroicons/react/solid';
12-
import useBenchmarkDetail from '../../hooks/benchmark';
11+
import Header from '../Page/Header';
12+
import Page from '../Page/Page';
1313

1414
function classNames(...classes: string[]) {
1515
return classes.filter(Boolean).join(' ');
@@ -75,7 +75,13 @@ const BenchmarkDetail = ({
7575
result = 'Processing...';
7676
}
7777
if (jobData) {
78-
result = <Result status={jobData.status} output={jobData.output} />;
78+
result = (
79+
<Result
80+
status={jobData.status}
81+
stderr={jobData.stderr}
82+
stdout={jobData.stdout}
83+
/>
84+
);
7985
}
8086

8187
const {

0 commit comments

Comments
 (0)