style: auto-fix lint and format
This commit is contained in:
1 parent
a2668740c0
commit
fc80a61aef
2 files changed
+3
-7
No files matched your search
@@ -192,13 +192,9 @@ export const QueryRefreshIndicator = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const QueryRow = ({ row }: { row: QueryStatusRow }) => {
|
const QueryRow = ({ row }: { row: QueryStatusRow }) => {
|
||||||
const rowColor = statusColorMap[
|
const rowColor = statusColorMap[row.fetchStatus === "fetching" ? "fetching" : `idle_${row.status}`] ?? "gray";
|
||||||
row.fetchStatus === "fetching" ? "fetching" : `idle_${row.status}`
|
|
||||||
] ?? "gray";
|
|
||||||
|
|
||||||
const updatedLabel = row.dataUpdatedAt > 0
|
const updatedLabel = row.dataUpdatedAt > 0 ? dayjs(row.dataUpdatedAt).fromNow() : "never";
|
||||||
? dayjs(row.dataUpdatedAt).fromNow()
|
|
||||||
: "never";
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Group gap="xs" wrap="nowrap">
|
<Group gap="xs" wrap="nowrap">
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ const CalendarBase = ({ isEditMode, events, month, setMonth, options }: Calendar
|
|||||||
.filter(
|
.filter(
|
||||||
(event) => event.metadata?.type !== "radarr" || options.releaseType.includes(event.metadata.releaseType),
|
(event) => event.metadata?.type !== "radarr" || options.releaseType.includes(event.metadata.releaseType),
|
||||||
)
|
)
|
||||||
.sort((eventA, eventB) => eventA.startDate.getTime() - eventB.startDate.getTime());
|
.toSorted((eventA, eventB) => eventA.startDate.getTime() - eventB.startDate.getTime());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CalendarDay
|
<CalendarDay
|
||||||
|
|||||||
Reference in new issue
Block a user