From 834d85a959e106ecd27584867d7ae0ea5b0bb7f2 Mon Sep 17 00:00:00 2001 From: zho Date: Sat, 24 Aug 2024 11:06:29 +0200 Subject: [PATCH] enhancement: add rewards at the top for mobile in contest page (#2199) --- .../Contest/components/RewardsInfo/index.tsx | 7 +------ .../layouts/LayoutViewContest/index.tsx | 15 ++++++++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/react-app-revamp/components/_pages/Contest/components/RewardsInfo/index.tsx b/packages/react-app-revamp/components/_pages/Contest/components/RewardsInfo/index.tsx index 18256ba97..2130c577c 100644 --- a/packages/react-app-revamp/components/_pages/Contest/components/RewardsInfo/index.tsx +++ b/packages/react-app-revamp/components/_pages/Contest/components/RewardsInfo/index.tsx @@ -142,12 +142,7 @@ const ContestRewardsInfo: FC = ({ rewardsModuleAddress, {formatBalance(currentUnpaidToken.tokenBalance)} $ {currentUnpaidSymbol} - - {!isMobile ? ( - <> - to {payees.length} {payees.length > 1 ? "winners" : "winner"} - - ) : null} + to {payees.length} {payees.length > 1 ? "winners" : "winner"} ) : currentPaidToken ? ( diff --git a/packages/react-app-revamp/layouts/LayoutViewContest/index.tsx b/packages/react-app-revamp/layouts/LayoutViewContest/index.tsx index 09723fa52..2a96da63e 100644 --- a/packages/react-app-revamp/layouts/LayoutViewContest/index.tsx +++ b/packages/react-app-revamp/layouts/LayoutViewContest/index.tsx @@ -202,17 +202,22 @@ const LayoutViewContest = ({ children }: { children: React.ReactNode }) => { )}
- +
+ {isMobile && rewardsModuleAddress && rewardsAbi ? ( +
+ +
+ ) : null} + +
-
+
- {rewardsModuleAddress && rewardsAbi ? ( + {!isMobile && rewardsModuleAddress && rewardsAbi ? ( ) : null} {isMobile ? (