diff --git a/src/components/Cards/Card.tsx b/src/components/Cards/Card.tsx index 6bf382a..91818b2 100644 --- a/src/components/Cards/Card.tsx +++ b/src/components/Cards/Card.tsx @@ -89,7 +89,7 @@ export const CardHeader: FC = function ({ export type CardFieldProps = { name: ReactNode; value: ReactNode; - originValue: string; + originValue?: string; }; export const CardField: FC = function ({ diff --git a/src/components/Cards/SurfaceCards/GameCard.tsx b/src/components/Cards/SurfaceCards/GameCard.tsx index 9f39567..acb9456 100644 --- a/src/components/Cards/SurfaceCards/GameCard.tsx +++ b/src/components/Cards/SurfaceCards/GameCard.tsx @@ -10,7 +10,6 @@ import { shortenAddress } from "@/utils"; import shield from "@/icons/shield.png"; import sword from "@/icons/sword.png"; import Image from "next/image"; -import { useRouter } from "next/router"; type GameCardProps = { game: Game; @@ -19,7 +18,6 @@ type GameCardProps = { const GameCard: FC> = function ({ game: { l2_block_number: number, block_time, game_contract, status } = {}, }) { - const nav = useRouter(); return (