lint: updates lint rules for no-unused-vars

This commit is contained in:
2024-03-16 02:12:20 -06:00
parent 16497edd46
commit 2e7eaccde8
10 changed files with 453 additions and 415 deletions

View File

@@ -4,7 +4,6 @@ import {
PropsWithChildren,
SetStateAction,
useCallback,
useEffect,
useState,
} from "react";
import { bulkRound } from "../../utils/bulkRound";
@@ -24,7 +23,7 @@ interface IProps {
setHover: Dispatch<SetStateAction<boolean>>;
}
type position = { top: number; left: number; width?: number };
type position = { top: number; left: number; width?: number; };
export const PoppableContent: FC<PropsWithChildren<IProps>> = (
{
@@ -35,7 +34,6 @@ export const PoppableContent: FC<PropsWithChildren<IProps>> = (
spacing = 10,
setHover,
isClosing,
isClosed,
},
) => {
const [popRef, setPopRef] = useState<HTMLDivElement>();
@@ -52,7 +50,7 @@ export const PoppableContent: FC<PropsWithChildren<IProps>> = (
relHeight: number,
popWidth: number,
popHeight: number,
edge: edge,
_edge: edge,
align: alignment,
): position => {
const pos = {

View File

@@ -1,13 +1,6 @@
"use client";
import {
FC,
PropsWithChildren,
ReactNode,
useCallback,
useEffect,
useState,
} from "react";
import { FC, PropsWithChildren, ReactNode, useCallback, useState } from "react";
import { PoppableContent } from "./poppable-content";
import { useDebounce } from "../../../hooks/useDebounce";