Skip to content

Commit

Permalink
Fix netstat widget (missing suspens icon component)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Tinland committed Aug 12, 2024
1 parent 6c5bdec commit 0531475
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/components/data/netstats.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import * as Uebersicht from "uebersicht";
import * as DataWidget from "./data-widget.jsx";
import * as DataWidgetLoader from "./data-widget-loader.jsx";
import * as Icons from "../icons/icons.jsx";
import { SuspenseIcon } from "../icons/icon.jsx";
import Graph from "./graph.jsx";
import useWidgetRefresh from "../../hooks/use-widget-refresh.js";
import useServerSocket from "../../hooks/use-server-socket";
import { useSimpleBarContext } from "../simple-bar-context.jsx";
import * as Icons from "../icons/icons.jsx";
import * as Utils from "../../utils.js";

export { netstatsStyles as styles } from "../../styles/components/data/netstats";
Expand Down Expand Up @@ -120,7 +121,9 @@ export const Widget = React.memo(() => {
<React.Fragment>
<DataWidget.Widget classes="netstats" disableSlider>
<div className="netstats__item">
<Icons.Download className="netstats__icon netstats__icon--download" />
<SuspenseIcon>
<Icons.Download className="netstats__icon netstats__icon--download" />
</SuspenseIcon>
<span
className="netstats__value"
dangerouslySetInnerHTML={{ __html: formattedDownload }}
Expand All @@ -129,7 +132,9 @@ export const Widget = React.memo(() => {
</DataWidget.Widget>
<DataWidget.Widget classes="netstats" disableSlider>
<div className="netstats__item">
<Icons.Upload className="netstats__icon netstats__icon--upload" />
<SuspenseIcon>
<Icons.Upload className="netstats__icon netstats__icon--upload" />
</SuspenseIcon>
<span
className="netstats__value"
dangerouslySetInnerHTML={{ __html: formattedUpload }}
Expand Down

0 comments on commit 0531475

Please sign in to comment.