From 52822569ded0232a31157f950f95de409121cf6e Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Fri, 18 Feb 2022 08:26:29 +0200 Subject: [PATCH] Fix lint --- app/components/play/LookingInfoText.tsx | 2 +- app/hooks/common.ts | 4 ++-- app/models/LFGGroup.server.ts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/components/play/LookingInfoText.tsx b/app/components/play/LookingInfoText.tsx index 2cbe64521..8ee979086 100644 --- a/app/components/play/LookingInfoText.tsx +++ b/app/components/play/LookingInfoText.tsx @@ -8,7 +8,7 @@ import { Button } from "../Button"; const CONTAINER_CLASSNAME = "play-looking__info-text"; export function LookingInfoText({ lastUpdated }: { lastUpdated: Date }) { - const [_, forceUpdate] = React.useState(Math.random()); + const [, forceUpdate] = React.useState(Math.random()); const data = useLoaderData(); React.useEffect(() => { diff --git a/app/hooks/common.ts b/app/hooks/common.ts index 6913199cf..8926761ff 100644 --- a/app/hooks/common.ts +++ b/app/hooks/common.ts @@ -102,9 +102,9 @@ export function useOnClickOutside( /** Refreshed loader data of the current route in an interval. * @returns Timestamp last updated */ -export function usePolling(pollingActive: boolean = true) { +export function usePolling(pollingActive = true) { const [lastUpdated, setLastUpdated] = React.useState(new Date()); - const data = useLoaderData(); + const data = useLoaderData(); const navigate = useNavigate(); const INTERVAL = 30_000; // 30 seconds diff --git a/app/models/LFGGroup.server.ts b/app/models/LFGGroup.server.ts index f0c99861e..d59b45c91 100644 --- a/app/models/LFGGroup.server.ts +++ b/app/models/LFGGroup.server.ts @@ -1,6 +1,5 @@ import type { LfgGroupType } from "@prisma/client"; import { generateMapListForLfgMatch } from "~/core/play/mapList"; -import { groupExpiredDates } from "~/core/play/utils"; import { db } from "~/utils/db.server"; export function create({