mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
linting
This commit is contained in:
parent
19bd5b3b7b
commit
9992cd87b0
@ -1,7 +1,8 @@
|
||||
import { Buffer } from 'buffer';
|
||||
|
||||
import Container from "components/services/widget/container";
|
||||
import Block from "components/services/widget/block";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import { Buffer } from 'buffer';
|
||||
|
||||
export default function Component({ service }) {
|
||||
const { widget } = service;
|
||||
@ -10,7 +11,7 @@ export default function Component({ service }) {
|
||||
const { data: jobStats, error: jobStatsError } = useWidgetAPI(widget, "job_stats");
|
||||
|
||||
if (printerStatsError) {
|
||||
const msg = JSON.parse(new Buffer.from(printerStatsError.resultData.data).toString());
|
||||
const msg = JSON.parse(Buffer.from(printerStatsError.resultData.data).toString());
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="OFFLINE" value={msg.error} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user