Skip to content

Commit

Permalink
fix(webapp): Better package listing
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed May 3, 2024
1 parent dae8024 commit 843e129
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,13 @@ function MyThemeProvider(props) {
class App extends React.Component {
constructor(props) {
super(props);
const deps_str = props.deps.join(" ");
const inner_deps_str = props.deps.join("\n");
const deps_str = `<pre><code>${inner_deps_str}</code></pre>`;
this.state = {
results: [],
repo: urlParams.get("repo") || "",
branch: urlParams.get("branch") || "",
msg: `${DEFAULT_MSG} Packages: ${deps_str}`,
msg: `<p>${DEFAULT_MSG}</p><h4>Packages:</h4> ${deps_str}`,
progress: false,
err_msg: "",
url: "",
Expand Down Expand Up @@ -363,7 +364,7 @@ class App extends React.Component {
<MaterialUI.Paper elevation={3}>
<MaterialUI.Box sx={{ p: 2 }}>
<MaterialUI.Typography variant="body1" component="div">
{this.state.msg}
<span dangerouslySetInnerHTML={{ __html: this.state.msg }} />
</MaterialUI.Typography>
{this.state.progress && <MaterialUI.LinearProgress />}
{this.state.err_msg && (
Expand Down

0 comments on commit 843e129

Please sign in to comment.