From 4cf41f2c4ccda2a98d76d67abeaeeb0d595ac5d1 Mon Sep 17 00:00:00 2001 From: ajnart <49837342+ajnart@users.noreply.github.com> Date: Sun, 7 Jun 2026 00:06:03 +0000 Subject: [PATCH] style: auto-fix lint and format --- .../components/board/items/widget-hover-metadata.ts | 11 ++++------- apps/nextjs/src/components/board/sections/content.tsx | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/apps/nextjs/src/components/board/items/widget-hover-metadata.ts b/apps/nextjs/src/components/board/items/widget-hover-metadata.ts index 0e913f5d4..22a75c9b3 100644 --- a/apps/nextjs/src/components/board/items/widget-hover-metadata.ts +++ b/apps/nextjs/src/components/board/items/widget-hover-metadata.ts @@ -115,12 +115,7 @@ export const collectWidgetHoverMetadata = ( return !skip && !hidden && !unchanged; }) .map(([key, optionDefinition]) => { - const formattedValue = formatOptionValue( - optionDefinition.type, - resolvedOptions[key], - optionDefinition, - t, - ); + const formattedValue = formatOptionValue(optionDefinition.type, resolvedOptions[key], optionDefinition, t); return { label: getOptionLabel(item.kind, key, t), value: formattedValue ?? "", @@ -142,7 +137,9 @@ const displayNameSources: DisplayNameSource[] = [ }, { matches: (item, options) => - item.kind === "clock" && Boolean(options.customTitleToggle) && String(options.customTitle ?? "").trim().length > 0, + item.kind === "clock" && + Boolean(options.customTitleToggle) && + String(options.customTitle ?? "").trim().length > 0, resolve: (_, options) => String(options.customTitle).trim(), }, ]; diff --git a/apps/nextjs/src/components/board/sections/content.tsx b/apps/nextjs/src/components/board/sections/content.tsx index 890673fde..3c3ca6ea0 100644 --- a/apps/nextjs/src/components/board/sections/content.tsx +++ b/apps/nextjs/src/components/board/sections/content.tsx @@ -19,7 +19,7 @@ export const SectionContent = () => { * @see https://github.com/homarr-labs/homarr/pull/1770 */ const sortedItems = useMemo(() => { - return [...items, ...innerSections].sort((itemA, itemB) => { + return [...items, ...innerSections].toSorted((itemA, itemB) => { if (itemA.yOffset === itemB.yOffset) { return itemA.xOffset - itemB.xOffset; }