From 72c9d3a173f89b2978177349e5dd277b73a77eb8 Mon Sep 17 00:00:00 2001 From: Sewmina Date: Tue, 15 Apr 2025 11:04:49 +0530 Subject: [PATCH] v1 snake --- next.config.ts | 2 +- src/components/GameHistory.tsx | 2 +- src/components/Header.tsx | 4 +-- src/components/HeroSection.tsx | 2 +- src/components/OpenGames.tsx | 47 ++++++++++++++++++++++++++-------- src/components/PrivyButton.tsx | 24 ++++++++++++----- src/data/shared.ts | 5 ++-- src/shared/data_fetcher.ts | 11 +++++--- 8 files changed, 70 insertions(+), 27 deletions(-) diff --git a/next.config.ts b/next.config.ts index 1d59d1e..167a872 100644 --- a/next.config.ts +++ b/next.config.ts @@ -3,7 +3,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { /* config options here */ images: { - domains: ["pbs.twimg.com","vps.playpoolstudios.com"], // ✅ add Twitter's image domain + domains: ["pbs.twimg.com","vps.playpoolstudios.com", "api.duelfi.io"], // ✅ add Twitter's image domain }, }; diff --git a/src/components/GameHistory.tsx b/src/components/GameHistory.tsx index 10c01e3..86c0388 100644 --- a/src/components/GameHistory.tsx +++ b/src/components/GameHistory.tsx @@ -141,7 +141,7 @@ export default function GameHistoryModal({ const profileUrl = opponent?.x_profile_url || (opponent?.username - ? `https://vps.playpoolstudios.com/duelfi/profile_picture/${opponent.username}.jpg` + ? `${API_URL}profile_picture/${opponent.username}.jpg` : "/duelfiassets/default-avatar.png"); const gameImageUrl = gameImages[game.game] || "/duelfiassets/default-game-thumbnail.png"; diff --git a/src/components/Header.tsx b/src/components/Header.tsx index c1e9a00..0938810 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -158,7 +158,7 @@ export default function Header() { {/* Socials */} Instant Duels, Instant{" "} - Wins + Wins.