From c568c274fb3dcbff700269c3ae265543e6e2e486 Mon Sep 17 00:00:00 2001 From: mhzrerfani Date: Tue, 15 Oct 2024 17:27:43 +0330 Subject: [PATCH] Add description to download modal --- apps/web/src/app/games/[id]/components/DownloadModal.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/games/[id]/components/DownloadModal.tsx b/apps/web/src/app/games/[id]/components/DownloadModal.tsx index 5769014..5bac83b 100644 --- a/apps/web/src/app/games/[id]/components/DownloadModal.tsx +++ b/apps/web/src/app/games/[id]/components/DownloadModal.tsx @@ -7,23 +7,24 @@ import { selectIsGameLoading$, selectProgressPercentage$ } from "../state/select export default function DownloadModal() { const { isLoading: isWalletLoading } = useWallet(); const percentage = useSelector(selectProgressPercentage$()); - const isLoading = useSelector(selectIsGameLoading$()) || isWalletLoading; + if (isLoading) return ( -
+
{percentage ? ( <> + Downloading assets {`%${percentage}`} ) : ( - "Starting download assets..." + "Starting downloading assets..." )}