@@ -270,45 +270,7 @@ const CustomProcedures = props => (
270
270
</ div >
271
271
</ div >
272
272
{ ! props . editing && < div className = { styles . optionsRow } style = { { marginTop : '1em' } } >
273
- { props . returns ? < >
274
- < div
275
- className = { styles . optionCard }
276
- role = "button"
277
- tabIndex = "0"
278
- onClick = { ( ) => props . onOutputTypeChanged ( 'string' ) }
279
- >
280
- < img
281
- className = { styles . optionIcon }
282
- src = { reporterBlockIcon }
283
- />
284
- < div className = { styles . optionTitle } >
285
- < FormattedMessage
286
- defaultMessage = "Return Text"
287
- description = "Label for block to return text"
288
- id = "gui.customProcedures.returnText"
289
- />
290
- </ div >
291
- </ div >
292
- < div
293
- className = { styles . optionCard }
294
- role = "button"
295
- tabIndex = "0"
296
- onClick = { ( ) => props . onOutputTypeChanged ( 'number' ) }
297
- >
298
- < img
299
- className = { styles . optionIcon }
300
- src = { reporterBlockIcon }
301
- />
302
- < div className = { styles . optionTitle } >
303
- < FormattedMessage
304
- defaultMessage = "Return a Number"
305
- description = "Label for block to return a number"
306
- id = "gui.customProcedures.returnANumber"
307
- />
308
- </ div >
309
- </ div >
310
- </ >
311
- : < >
273
+ { ! props . returns && < >
312
274
< div
313
275
className = { styles . optionCard }
314
276
role = "button"
@@ -346,24 +308,6 @@ const CustomProcedures = props => (
346
308
</ div >
347
309
</ div >
348
310
</ > }
349
- { props . returns && < div
350
- className = { styles . optionCard }
351
- role = "button"
352
- tabIndex = "0"
353
- onClick = { ( ) => props . onOutputTypeChanged ( 'boolean' ) }
354
- >
355
- < img
356
- className = { styles . optionIcon }
357
- src = { booleanBlockIcon }
358
- />
359
- < div className = { styles . optionTitle } >
360
- < FormattedMessage
361
- defaultMessage = "Return a Boolean"
362
- description = "Label for block to return a boolean"
363
- id = "gui.customProcedures.returnABoolean"
364
- />
365
- </ div >
366
- </ div > }
367
311
</ div > }
368
312
369
313
< BlockColorSection { ...props } />
0 commit comments