Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clmntsnr committed Dec 3, 2024
1 parent 2dbbee0 commit 6c57fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 2 additions & 11 deletions src/components/element/chain/ChainLibrary.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -11,14 +9,7 @@ export type ChainLibraryProps = {
};

export default function ChainLibrary({ chains, count }: ChainLibraryProps) {
const rows = useMemo(
() => chains?.map(c => <ChainTableRow key={`${c.id}`} chain={c} />),
[chains],
);
const rows = useMemo(() => chains?.map(c => <ChainTableRow key={`${c.id}`} chain={c} />), [chains]);

return (
<ChainTable>
{rows}
</ChainTable>
);
return <ChainTable>{rows}</ChainTable>;
}
6 changes: 3 additions & 3 deletions src/components/element/chain/ChainTableRow.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -14,7 +14,7 @@ export type ChainTableRowProps = {

export default function ChainTableRow({ hideTags, chain, className, ...props }: ChainTableRowProps) {
console.log(chain);

return (
<Link to={`/chains/${chain.name}`}>
<ChainRow
Expand Down

0 comments on commit 6c57fac

Please sign in to comment.