Skip to content

Commit a74683f

Browse files
committed
Merge pull request #4808 from cagdas001/fix-4747
refactor(challenge-detail): remove `finalSubmissionGuidelines` usages
1 parent 4c6d74b commit a74683f

File tree

2 files changed

+0
-50
lines changed
  • src/shared/components
    • ReviewOpportunityDetailsPage/ChallengeSpecTab
    • challenge-detail/Specification

2 files changed

+0
-50
lines changed

src/shared/components/ReviewOpportunityDetailsPage/ChallengeSpecTab/index.jsx

-18
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,6 @@ const ChallengeSpecTab = ({ challenge }) => (
2929
</article>
3030
)
3131
}
32-
{
33-
challenge.finalSubmissionGuidelines
34-
&& (
35-
<article>
36-
<h2 styleName="h2">
37-
Final Submission Guidelines
38-
</h2>
39-
<div
40-
/* eslint-disable react/no-danger */
41-
dangerouslySetInnerHTML={{
42-
__html: challenge.finalSubmissionGuidelines,
43-
}}
44-
/* eslint-enable react/no-danger */
45-
styleName="rawHtml"
46-
/>
47-
</article>
48-
)
49-
}
5032
</div>
5133
);
5234

src/shared/components/challenge-detail/Specification/index.jsx

-32
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export default function ChallengeDetailsView(props) {
4545
legacy,
4646
legacyId,
4747
documents,
48-
finalSubmissionGuidelines,
4948
userDetails,
5049
metadata,
5150
events,
@@ -196,35 +195,6 @@ export default function ChallengeDetailsView(props) {
196195
</article>
197196
)
198197
}
199-
{
200-
finalSubmissionGuidelines
201-
&& (
202-
<article>
203-
<h2>
204-
Final Submission Guidelines
205-
</h2>
206-
{
207-
editMode ? (
208-
<Editor
209-
connector={toolbarConnector}
210-
id="submissionGuidelines"
211-
initialMode={EDITOR_MODES.WYSIWYG}
212-
ref={n => n && n.setHtml(finalSubmissionGuidelines)}
213-
/>
214-
) : (
215-
<div
216-
/* eslint-disable react/no-danger */
217-
dangerouslySetInnerHTML={{
218-
__html: finalSubmissionGuidelines,
219-
}}
220-
/* eslint-enable react/no-danger */
221-
styleName="rawHtml"
222-
/>
223-
)
224-
}
225-
</article>
226-
)
227-
}
228198
</div>
229199
)
230200
: (
@@ -408,7 +378,6 @@ ChallengeDetailsView.defaultProps = {
408378
track: 'design',
409379
reviewType: undefined,
410380
numberOfCheckpointsPrizes: 0,
411-
finalSubmissionGuidelines: '',
412381
environment: '',
413382
descriptionFormat: 'HTML',
414383
codeRepo: '',
@@ -438,7 +407,6 @@ ChallengeDetailsView.propTypes = {
438407
groups: PT.any,
439408
reviewType: PT.string,
440409
numberOfCheckpointsPrizes: PT.number,
441-
finalSubmissionGuidelines: PT.string,
442410
environment: PT.string,
443411
codeRepo: PT.string,
444412
userDetails: PT.shape({

0 commit comments

Comments
 (0)