Address build issues
This commit is contained in:
parent
b1ce309cb2
commit
d88596559a
@ -1,4 +1,5 @@
|
|||||||
/* eslint-disable eslint-comments/disable-enable-pair */
|
/* eslint-disable eslint-comments/disable-enable-pair */
|
||||||
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
||||||
|
|
||||||
/* eslint-disable jsx-a11y/img-redundant-alt */
|
/* eslint-disable jsx-a11y/img-redundant-alt */
|
||||||
import { truncateAddress } from 'utils/wallet'
|
import { truncateAddress } from 'utils/wallet'
|
||||||
@ -24,30 +25,32 @@ export default function CollectionsTable({ collections }: { collections: Clickab
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className=" bg-black">
|
<tbody className=" bg-black">
|
||||||
{collections.map((collection) => (
|
{collections
|
||||||
<tr
|
? collections.map((collection) => (
|
||||||
key={collection.contractAddress}
|
<tr
|
||||||
className="hover:bg-zinc-900 cursor-pointer"
|
key={collection.contractAddress}
|
||||||
onClick={collection.onClick}
|
className="hover:bg-zinc-900 cursor-pointer"
|
||||||
>
|
onClick={collection.onClick}
|
||||||
<td className="py-2 pr-3 pl-4 whitespace-nowrap sm:pl-0">
|
>
|
||||||
<div className="flex items-center">
|
<td className="py-2 pr-3 pl-4 whitespace-nowrap sm:pl-0">
|
||||||
<div className="shrink-0 w-11 h-11">
|
<div className="flex items-center">
|
||||||
<img alt="Collection Image" src={collection.media} />
|
<div className="shrink-0 w-11 h-11">
|
||||||
</div>
|
<img alt="Collection Image" src={collection.media} />
|
||||||
<div className="ml-4 font-medium text-white truncate">{collection.name}</div>
|
</div>
|
||||||
</div>
|
<div className="ml-4 font-medium text-white truncate">{collection.name}</div>
|
||||||
</td>
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td className="py-5 px-3 text-zinc-400 whitespace-nowrap">
|
<td className="py-5 px-3 text-zinc-400 whitespace-nowrap">
|
||||||
<div className="text-left text-white">
|
<div className="text-left text-white">
|
||||||
{collection.contractAddress.startsWith('stars')
|
{collection.contractAddress.startsWith('stars')
|
||||||
? truncateAddress(collection.contractAddress)
|
? truncateAddress(collection.contractAddress)
|
||||||
: collection.contractAddress}
|
: collection.contractAddress}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))
|
||||||
|
: null}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user