style: auto-fix lint and format
This commit is contained in:
1 parent
ab3c8b4d1f
commit
4cf41f2c4c
2 files changed
+5
-8
No files matched your search
@@ -115,12 +115,7 @@ export const collectWidgetHoverMetadata = (
|
|||||||
return !skip && !hidden && !unchanged;
|
return !skip && !hidden && !unchanged;
|
||||||
})
|
})
|
||||||
.map(([key, optionDefinition]) => {
|
.map(([key, optionDefinition]) => {
|
||||||
const formattedValue = formatOptionValue(
|
const formattedValue = formatOptionValue(optionDefinition.type, resolvedOptions[key], optionDefinition, t);
|
||||||
optionDefinition.type,
|
|
||||||
resolvedOptions[key],
|
|
||||||
optionDefinition,
|
|
||||||
t,
|
|
||||||
);
|
|
||||||
return {
|
return {
|
||||||
label: getOptionLabel(item.kind, key, t),
|
label: getOptionLabel(item.kind, key, t),
|
||||||
value: formattedValue ?? "",
|
value: formattedValue ?? "",
|
||||||
@@ -142,7 +137,9 @@ const displayNameSources: DisplayNameSource[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
matches: (item, options) =>
|
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(),
|
resolve: (_, options) => String(options.customTitle).trim(),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export const SectionContent = () => {
|
|||||||
* @see https://github.com/homarr-labs/homarr/pull/1770
|
* @see https://github.com/homarr-labs/homarr/pull/1770
|
||||||
*/
|
*/
|
||||||
const sortedItems = useMemo(() => {
|
const sortedItems = useMemo(() => {
|
||||||
return [...items, ...innerSections].sort((itemA, itemB) => {
|
return [...items, ...innerSections].toSorted((itemA, itemB) => {
|
||||||
if (itemA.yOffset === itemB.yOffset) {
|
if (itemA.yOffset === itemB.yOffset) {
|
||||||
return itemA.xOffset - itemB.xOffset;
|
return itemA.xOffset - itemB.xOffset;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user