|
| 1 | +import { Listbox, Transition } from '@headlessui/react'; |
| 2 | +import { CheckIcon, SelectorIcon } from '@heroicons/react/solid'; |
| 3 | +import Editor from '@monaco-editor/react'; |
1 | 4 | import React, { Fragment, useRef, useState } from 'react'; |
2 | 5 | 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'; |
6 | 7 | import useProcessInterval, { |
7 | 8 | useLastSubmissionForUser, |
8 | 9 | } from '../../hooks/submissions'; |
9 | 10 | 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'; |
13 | 13 |
|
14 | 14 | function classNames(...classes: string[]) { |
15 | 15 | return classes.filter(Boolean).join(' '); |
@@ -75,7 +75,13 @@ const BenchmarkDetail = ({ |
75 | 75 | result = 'Processing...'; |
76 | 76 | } |
77 | 77 | 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 | + ); |
79 | 85 | } |
80 | 86 |
|
81 | 87 | const { |
|
0 commit comments