File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -191,12 +191,13 @@ function MyThemeProvider(props) {
191
191
class App extends React . Component {
192
192
constructor ( props ) {
193
193
super ( props ) ;
194
- const deps_str = props . deps . join ( " " ) ;
194
+ const inner_deps_str = props . deps . join ( "\n" ) ;
195
+ const deps_str = `<pre><code>${ inner_deps_str } </code></pre>` ;
195
196
this . state = {
196
197
results : [ ] ,
197
198
repo : urlParams . get ( "repo" ) || "" ,
198
199
branch : urlParams . get ( "branch" ) || "" ,
199
- msg : `${ DEFAULT_MSG } Packages: ${ deps_str } ` ,
200
+ msg : `<p> ${ DEFAULT_MSG } </p><h4> Packages:</h4> ${ deps_str } ` ,
200
201
progress : false ,
201
202
err_msg : "" ,
202
203
url : "" ,
@@ -362,7 +363,7 @@ class App extends React.Component {
362
363
< MaterialUI . Paper elevation = { 3 } >
363
364
< MaterialUI . Box sx = { { p : 2 } } >
364
365
< MaterialUI . Typography variant = "body1" component = "div" >
365
- { this . state . msg }
366
+ < span dangerouslySetInnerHTML = { { __html : this . state . msg } } />
366
367
</ MaterialUI . Typography >
367
368
{ this . state . progress && < MaterialUI . LinearProgress /> }
368
369
{ this . state . err_msg && (
You can’t perform that action at this time.
0 commit comments