@@ -59,7 +59,12 @@ export default function ChallengeDetailsView(props) {
59
59
forumId,
60
60
} = legacy ;
61
61
62
- const allowStockArt = _ . find ( metadata , { type : 'allowStockArt' } ) ;
62
+ let stockArtValue = '' ;
63
+ const allowStockArt = _ . find ( metadata , { name : 'allowStockArt' } ) ;
64
+ if ( allowStockArt ) {
65
+ stockArtValue = allowStockArt . value ;
66
+ }
67
+
63
68
let environment = '' ;
64
69
const environmentData = _ . find ( metadata , { name : 'environment' } ) ;
65
70
if ( environmentData ) {
@@ -103,7 +108,7 @@ export default function ChallengeDetailsView(props) {
103
108
const toolbarConnector = new ToolbarConnector ( ) ;
104
109
const isSaving = specsTabState === SPECS_TAB_STATES . SAVING ;
105
110
106
- const stockArtText = allowStockArt
111
+ const stockArtText = stockArtValue
107
112
? 'Stock photography is allowed in this challenge.'
108
113
: 'Stock photography is not allowed in this challenge. All submitted elements must be designed solely by you.' ;
109
114
@@ -170,7 +175,7 @@ export default function ChallengeDetailsView(props) {
170
175
description
171
176
&& (
172
177
< article >
173
- < h2 styleName = "h2" >
178
+ < h2 >
174
179
Challenge Overview
175
180
</ h2 >
176
181
{
@@ -195,7 +200,7 @@ export default function ChallengeDetailsView(props) {
195
200
finalSubmissionGuidelines
196
201
&& (
197
202
< article >
198
- < h2 styleName = "h2" >
203
+ < h2 >
199
204
Final Submission Guidelines
200
205
</ h2 >
201
206
{
@@ -228,7 +233,7 @@ export default function ChallengeDetailsView(props) {
228
233
description
229
234
&& (
230
235
< article >
231
- < h2 styleName = "h2" >
236
+ < h2 >
232
237
Challenge Summary
233
238
</ h2 >
234
239
{
@@ -246,8 +251,8 @@ export default function ChallengeDetailsView(props) {
246
251
/>
247
252
)
248
253
}
249
- < p styleName = "p" />
250
- < p styleName = "p note" >
254
+ < p />
255
+ < p styleName = "note" >
251
256
Please read the challenge specification carefully and
252
257
watch the forums for any questions or feedback
253
258
concerning this challenge. It is important that you
@@ -259,10 +264,10 @@ export default function ChallengeDetailsView(props) {
259
264
)
260
265
}
261
266
< article >
262
- < h2 styleName = "h2" >
267
+ < h2 >
263
268
Stock Photography
264
269
</ h2 >
265
- < p styleName = "p" >
270
+ < p >
266
271
{ stockArtText }
267
272
268
273
< a href = { config . URL . INFO . STOCK_ART_POLICY } >
@@ -271,10 +276,10 @@ export default function ChallengeDetailsView(props) {
271
276
</ p >
272
277
</ article >
273
278
< article >
274
- < h2 styleName = "h2" >
279
+ < h2 >
275
280
How To Submit
276
281
</ h2 >
277
- < ul styleName = "ul" >
282
+ < ul >
278
283
< li >
279
284
New to Studio?
280
285
‌
@@ -311,10 +316,10 @@ export default function ChallengeDetailsView(props) {
311
316
</ article >
312
317
313
318
< article >
314
- < h2 styleName = "h2" >
319
+ < h2 >
315
320
Winner Selection
316
321
</ h2 >
317
- < p styleName = "p" >
322
+ < p >
318
323
Submissions are viewable to the client as they are entered
319
324
into the challenge. Winners are selected by the client and
320
325
are chosen solely at the client's discretion.
@@ -324,13 +329,13 @@ export default function ChallengeDetailsView(props) {
324
329
)
325
330
}
326
331
< article >
327
- < h2 styleName = "h2" >
332
+ < h2 >
328
333
Payments
329
334
</ h2 >
330
335
{
331
336
isWipro ? (
332
337
< div >
333
- < p styleName = "p" >
338
+ < p >
334
339
For employees of Wipro Technologies, following are the
335
340
payment terms. Winner/s would be awarded the prize money on
336
341
successful completion and acceptance of the submission by
@@ -354,7 +359,7 @@ export default function ChallengeDetailsView(props) {
354
359
</ p >
355
360
</ div >
356
361
) : (
357
- < p styleName = "p" >
362
+ < p >
358
363
Topcoder will compensate members in accordance with our standard payment policies, unless
359
364
otherwise specified in this challenge. For information on payment policies, setting up your profile to
360
365
receive payments, and general payment questions, please refer to
0 commit comments