Skip to content

Commit 055803e

Browse files
committed
Revert "secret: this is a commit message 2"
This reverts commit 12cb88c.
1 parent 12cb88c commit 055803e

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

judgels-client/src/components/ProblemEditorial/ProblemEditorial.jsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Lock } from '@blueprintjs/icons';
21
import { Fragment } from 'react';
32

43
import RichStatementText from '../RichStatementText/RichStatementText';
@@ -64,13 +63,6 @@ export function ProblemEditorial({ title, settersMap, profilesMap, children }) {
6463
);
6564
};
6665

67-
return (
68-
<div className="problem-editorial">
69-
<Lock /> &nbsp;
70-
<small>Due to some reason, viewing editorial is disabled for today. We apologize for the inconvenience.</small>
71-
</div>
72-
);
73-
7466
return (
7567
<div className="problem-editorial">
7668
<h4>{title}</h4>

judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,6 @@ export function SubmissionDetails({
336336
};
337337

338338
const renderSourceFiles = () => {
339-
if (problemUrl.indexOf('/contests/') === -1) {
340-
return (
341-
<ContentCard>
342-
<Lock /> &nbsp;
343-
<small>
344-
Due to some reason, viewing source code is disabled for today. We apologize for the inconvenience.
345-
</small>
346-
</ContentCard>
347-
);
348-
}
349-
350339
if (isOutputOnly(gradingEngine)) {
351340
return renderSourceFilesHeading();
352341
}

judgels-client/src/routes/contests/contests/single/editorial/ContestEditorialPage/ContestEditorialPage.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('ContestEditorialPage', () => {
126126

127127
it('shows the editorial', () => {
128128
const text = wrapper.find('.contest-editorial').text();
129-
expect(text).not.toEqual(
129+
expect(text).toEqual(
130130
'' +
131131
'Thanks for participating.' +
132132
'A. Soal AHello. This is editorial for problem A' +

0 commit comments

Comments
 (0)