From 6c57fac001c1c02e07b3ca8a0c3684b78310ce44 Mon Sep 17 00:00:00 2001 From: sheykei Date: Tue, 3 Dec 2024 14:43:11 +0100 Subject: [PATCH] fix: lint --- src/components/element/chain/ChainLibrary.tsx | 13 ++----------- src/components/element/chain/ChainTableRow.tsx | 6 +++--- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/components/element/chain/ChainLibrary.tsx b/src/components/element/chain/ChainLibrary.tsx index 1cc201ec..3b5a49d5 100644 --- a/src/components/element/chain/ChainLibrary.tsx +++ b/src/components/element/chain/ChainLibrary.tsx @@ -1,7 +1,5 @@ import type { Chain } from "@merkl/api"; -import { Group } from "dappkit"; import { useMemo } from "react"; -import OpportunityPagination from "../opportunity/OpportunityPagination"; import { ChainTable } from "./ChainTable"; import ChainTableRow from "./ChainTableRow"; @@ -11,14 +9,7 @@ export type ChainLibraryProps = { }; export default function ChainLibrary({ chains, count }: ChainLibraryProps) { - const rows = useMemo( - () => chains?.map(c => ), - [chains], - ); + const rows = useMemo(() => chains?.map(c => ), [chains]); - return ( - - {rows} - - ); + return {rows}; } diff --git a/src/components/element/chain/ChainTableRow.tsx b/src/components/element/chain/ChainTableRow.tsx index 9e1b7a0a..5777965e 100644 --- a/src/components/element/chain/ChainTableRow.tsx +++ b/src/components/element/chain/ChainTableRow.tsx @@ -1,6 +1,6 @@ -import type { Protocol, Chain } from "@merkl/api"; +import type { Chain } from "@merkl/api"; import { Link } from "@remix-run/react"; -import { Button, Group, Icon, Value } from "dappkit"; +import { Group, Icon } from "dappkit"; import type { BoxProps } from "dappkit"; import { Title } from "dappkit"; import { mergeClass } from "dappkit"; @@ -14,7 +14,7 @@ export type ChainTableRowProps = { export default function ChainTableRow({ hideTags, chain, className, ...props }: ChainTableRowProps) { console.log(chain); - + return (