diff --git a/pages/snapshots/CollectionModal.tsx b/pages/snapshots/CollectionModal.tsx deleted file mode 100644 index 36c9185..0000000 --- a/pages/snapshots/CollectionModal.tsx +++ /dev/null @@ -1,49 +0,0 @@ -'use client' - -import { Dialog, Transition } from '@headlessui/react' -import type { ReactNode } from 'react' -import { Fragment } from 'react' - -export default function CollectionModal({ - show, - children, - onClose, -}: { - show: boolean - children: ReactNode - onClose: () => void -}) { - return ( - - - -
- - -
-
- - {children} - -
-
-
-
- ) -} diff --git a/pages/snapshots/CollectionsTable.tsx b/pages/snapshots/CollectionsTable.tsx index 30a0a8c..f22bcb8 100644 --- a/pages/snapshots/CollectionsTable.tsx +++ b/pages/snapshots/CollectionsTable.tsx @@ -1,4 +1,5 @@ /* eslint-disable eslint-comments/disable-enable-pair */ +/* eslint-disable @typescript-eslint/no-unnecessary-condition */ /* eslint-disable jsx-a11y/img-redundant-alt */ import { truncateAddress } from 'utils/wallet' @@ -24,30 +25,32 @@ export default function CollectionsTable({ collections }: { collections: Clickab - {collections.map((collection) => ( - - -
-
- Collection Image -
-
{collection.name}
-
- + {collections + ? collections.map((collection) => ( + + +
+
+ Collection Image +
+
{collection.name}
+
+ - -
- {collection.contractAddress.startsWith('stars') - ? truncateAddress(collection.contractAddress) - : collection.contractAddress} -
- - - ))} + +
+ {collection.contractAddress.startsWith('stars') + ? truncateAddress(collection.contractAddress) + : collection.contractAddress} +
+ + + )) + : null} )