File tree 1 file changed +4
-6
lines changed
plugins/plugin-codeflare/src/components
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,12 @@ export default class AskUI extends React.PureComponent<Props, State> {
139
139
)
140
140
}
141
141
142
- private card ( title : React . ReactNode , body : React . ReactNode ) {
142
+ private card ( ask : Ask , body : React . ReactNode ) {
143
143
return (
144
144
< Card isLarge isPlain className = "sans-serif" >
145
145
< CardBody >
146
146
< Hint actions = { this . actions ( ) } className = "somewhat-larger-text" >
147
- { title }
147
+ < Markdown nested source = { `### ${ this . title ( ask ) } \n\n ${ ask . description || "" } ` } />
148
148
</ Hint >
149
149
150
150
{ body }
@@ -292,12 +292,10 @@ export default class AskUI extends React.PureComponent<Props, State> {
292
292
children : mkOptions ( ) ,
293
293
}
294
294
295
- const title = < Markdown nested source = { `### ${ this . title ( ask ) } \n\n${ ask . description || "" } ` } />
296
-
297
295
return (
298
296
< React . Fragment >
299
297
< span id = { titleId } hidden />
300
- { this . card ( title , < Select { ...props } /> ) }
298
+ { this . card ( ask , < Select { ...props } /> ) }
301
299
</ React . Fragment >
302
300
)
303
301
}
@@ -318,7 +316,7 @@ export default class AskUI extends React.PureComponent<Props, State> {
318
316
this . _form = form
319
317
320
318
return this . card (
321
- this . title ( ask ) ,
319
+ ask ,
322
320
< Form onSubmit = { this . _onFormSubmit } className = "top-pad" >
323
321
< Grid hasGutter md = { 6 } >
324
322
{ ask . prompt . choices . map ( ( _ ) => (
You can’t perform that action at this time.
0 commit comments