mirror of
https://github.com/0xFableOrg/0xFable.git
synced 2026-05-07 03:00:13 -04:00
make check
This commit is contained in:
@@ -38,7 +38,7 @@ const CardCollectionDisplay: React.FC<CardCollectionDisplayProps> = ({ cards, is
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Image className="aspect-square" src={testCards.find(tc => tc.id === index + 1)?.image} alt={card.lore.name} width={256} height={256} />
|
||||
<Image className="aspect-square" src={testCards.find(tc => Number(tc.id) === index + 1)?.image || ""} alt={card.lore.name} width={256} height={256} />
|
||||
<div className="text-center">{card.lore.name}</div>
|
||||
<div className="flex items-end justify-between p-2 relative">
|
||||
<div className="flex items-center justify-center h-8 w-8 rounded-full bg-yellow-400 text-gray-900 font-bold text-lg absolute bottom-[-16px]">{card.stats.attack}</div>
|
||||
|
||||
@@ -9,7 +9,7 @@ import { NextPage } from "next"
|
||||
import type { AppType } from "next/app"
|
||||
import Head from "next/head"
|
||||
import { useAccount, WagmiConfig } from "wagmi"
|
||||
import { Dispatch, SetStateAction, useState } from "react"
|
||||
import { Dispatch, SetStateAction } from "react"
|
||||
import { ensureLocalAccountIndex, wagmiConfig } from "src/chain"
|
||||
import jotaiDebug from "src/components/lib/jotaiDebug"
|
||||
import { GlobalErrorModal } from "src/components/modals/globalErrorModal"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import debounce from "lodash/debounce"
|
||||
import Head from "next/head"
|
||||
|
||||
import { useState, useMemo, useEffect } from "react"
|
||||
import React, { useState, useMemo, useEffect } from "react"
|
||||
import { useAccount } from "wagmi"
|
||||
|
||||
import jotaiDebug from "src/components/lib/jotaiDebug"
|
||||
@@ -111,13 +111,13 @@ const Collection: React.FC<CollectionProps> = ({ decks, setDecks, isHydrated })
|
||||
setDecks(updatedDecks)
|
||||
setIsEditing(false)
|
||||
setSelectedCards([])
|
||||
navigate(router, '/collection')
|
||||
void navigate(router, '/collection')
|
||||
}
|
||||
|
||||
const handleCancelEditing = () => {
|
||||
setIsEditing(false)
|
||||
setSelectedCards([])
|
||||
navigate(router, '/collection')
|
||||
void navigate(router, '/collection')
|
||||
}
|
||||
|
||||
const addToDeck = (card: Card) => {
|
||||
|
||||
Reference in New Issue
Block a user