mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 23:26:15 -05:00
Fix lint
This commit is contained in:
@@ -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<LookingLoaderData>();
|
||||
|
||||
React.useEffect(() => {
|
||||
|
||||
@@ -102,9 +102,9 @@ export function useOnClickOutside<T extends HTMLElement = HTMLElement>(
|
||||
/** 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<unknown>();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const INTERVAL = 30_000; // 30 seconds
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user