diff --git a/frontend/src/app/components/dropdown/dropdownFaucetMenu.tsx b/frontend/src/app/components/dropdown/dropdownFaucetMenu.tsx index 64cb85d..804ef28 100644 --- a/frontend/src/app/components/dropdown/dropdownFaucetMenu.tsx +++ b/frontend/src/app/components/dropdown/dropdownFaucetMenu.tsx @@ -52,7 +52,7 @@ function DropdownFaucetMenu() { */} - {/* + BNB Faucet & Bridge @@ -74,7 +74,7 @@ function DropdownFaucetMenu() { - */} + {/* */} {/* @@ -105,7 +105,7 @@ function DropdownFaucetMenu() { */} - + {/* ETH Blast Sepolia @@ -117,7 +117,7 @@ function DropdownFaucetMenu() { Blastapi faucet - + */} diff --git a/frontend/src/app/components/game-page-header/gamePageHeader.tsx b/frontend/src/app/components/game-page-header/gamePageHeader.tsx index 5ccb4c5..a0858c3 100644 --- a/frontend/src/app/components/game-page-header/gamePageHeader.tsx +++ b/frontend/src/app/components/game-page-header/gamePageHeader.tsx @@ -17,7 +17,7 @@ import { } from "@/app/components/ui/dropdown-menu"; import { LogOut, User } from "lucide-react"; import Link from "next/link"; -import { useAccount } from "wagmi"; +import { useAccount, useDisconnect } from "wagmi"; interface IGamePageHeaderProps { isButtonDisabled?: boolean; @@ -32,6 +32,7 @@ function GamePageHeader({ }: IGamePageHeaderProps) { const { isSignedIn } = useSIWE(); const { address } = useAccount(); + const { disconnect } = useDisconnect(); return (
@@ -47,8 +48,8 @@ function GamePageHeader({ RTM @@ -64,7 +65,10 @@ function GamePageHeader({ - + disconnect()} + > Log out diff --git a/frontend/src/app/user/[id]/page.tsx b/frontend/src/app/user/[id]/page.tsx index 6c12a45..b24405d 100644 --- a/frontend/src/app/user/[id]/page.tsx +++ b/frontend/src/app/user/[id]/page.tsx @@ -15,6 +15,7 @@ import { usePathname } from "next/navigation"; import { useEffect, useState } from "react"; import { useAccount } from "wagmi"; import { Statistic } from "@/app/components/leaderboard-card/leaderboardCard"; +import { formatUnits } from "viem"; export default function UserProfile() { const [data, setData] = useState({ @@ -52,7 +53,7 @@ export default function UserProfile() { - Your Max Speed + Max Speed {/* */} @@ -66,7 +67,7 @@ export default function UserProfile() { - Overall Wins In Duels + Wins In Duels {/* */} @@ -88,7 +89,10 @@ export default function UserProfile() {
- $ {data?.totalReward} + {data.totalReward + ? formatUnits(BigInt(data?.totalReward), 10) + : "0"}{" "} + ETH

+19% from last month @@ -98,7 +102,7 @@ export default function UserProfile() { - Total Number Of Completed Races + Completed Races {/* */}