eslint is not throwing errors anymore

This commit is contained in:
corgifist 2025-08-04 23:27:21 +03:00
parent 7fbab934ff
commit b5f6a1ee8c
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
"use client"; "use client";
import React, { createContext, Dispatch, ReactNode, SetStateAction, useContext, useRef, useState } from "react"; import React, { createContext, Dispatch, ReactNode, SetStateAction, useContext, useState } from "react";
import { useLiveQuery } from "dexie-react-hooks"; import { useLiveQuery } from "dexie-react-hooks";
import { addProject, db, deleteProject } from "@/lib/db"; import { addProject, db, deleteProject } from "@/lib/db";
import { Label } from "@/components/ui/label"; import { Label } from "@/components/ui/label";

View File

@ -93,7 +93,7 @@ const SwipeToDelete: FC<SwipeToDeleteProps> = ({
lastYRef.current = pageY; lastYRef.current = pageY;
const raw = pageX - startX; const raw = pageX - startX;
let x = dragX < 0 ? rubber(raw) : rubber(raw, width * 0.1); const x = dragX < 0 ? rubber(raw) : rubber(raw, width * 0.1);
if ((Math.abs(dragX) === 0 ? Math.abs(vY) < window.innerHeight * 0.05 && Math.abs(vX) > Math.abs(vY) : true)) { if ((Math.abs(dragX) === 0 ? Math.abs(vY) < window.innerHeight * 0.05 && Math.abs(vX) > Math.abs(vY) : true)) {
if (x < -1) setAllowOverscroll(true); if (x < -1) setAllowOverscroll(true);
if (x <= 0 || (allowOverscroll && x >= 0)) { if (x <= 0 || (allowOverscroll && x >= 0)) {