Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

style: auto-fix lint and format

ajnart3d93ae124628
diff --git a/packages/widgets/src/_inputs/widget-beszel-system-input.tsx b/packages/widgets/src/_inputs/widget-beszel-system-input.tsx
index 706307dca..0234ecf17 100644
--- a/packages/widgets/src/_inputs/widget-beszel-system-input.tsx
+++ b/packages/widgets/src/_inputs/widget-beszel-system-input.tsx
@@ -39,13 +39,13 @@ export const WidgetBeszelSystemInput = ({ property, kind }: CommonWidgetInputPro
<Select
label={tInput("label")}
description={tInput("description")}
- placeholder={isPending && t("loading") || t("placeholder")}
+ placeholder={(isPending && t("loading")) || t("placeholder")}
clearable
searchable
nothingFoundMessage={t("noSystems")}
data={systems}
disabled={isError}
- error={isError && t("loadError") || undefined}
+ error={(isError && t("loadError")) || undefined}
{...form.getInputProps(`options.${property}`)}
/>
);
diff --git a/packages/widgets/src/beszel-system-stats/component.tsx b/packages/widgets/src/beszel-system-stats/component.tsx
index b8746b621..6e29370ac 100644
--- a/packages/widgets/src/beszel-system-stats/component.tsx
+++ b/packages/widgets/src/beszel-system-stats/component.tsx
@@ -80,7 +80,10 @@ export default function BeszelSystemStatsWidget({
const { data: liveData, error: liveError } = useLiveStats(integrationIds, selectedSystem, isLive && systemReady);
- let activeStats: { systemStats: BeszelSystemStatsRecord[]; containerStats: BeszelContainerStatsRecord[] } | null | undefined = statsResult;
+ let activeStats:
+ | { systemStats: BeszelSystemStatsRecord[]; containerStats: BeszelContainerStatsRecord[] }
+ | null
+ | undefined = statsResult;
if (isLive) {
activeStats = liveData;
}
@@ -208,7 +211,7 @@ export default function BeszelSystemStatsWidget({
<ScrollArea
h="100%"
className={classes.beszelStatsWrapper}
- style={{ pointerEvents: isEditMode && "none" || undefined }}
+ style={{ pointerEvents: (isEditMode && "none") || undefined }}
>
<Stack gap="md" p="sm">
{!isEditMode && systems.length > 1 && (
@@ -237,8 +240,8 @@ export default function BeszelSystemStatsWidget({
<Menu.Item
key={s.value}
fz="xs"
- fw={s.value === selectedSystem && 600 || 400}
- c={s.value !== selectedSystem && "dimmed" || undefined}
+ fw={(s.value === selectedSystem && 600) || 400}
+ c={(s.value !== selectedSystem && "dimmed") || undefined}
onClick={() => handleSelectSystem(s.value)}
>
{s.label}