From 726d17b55535f3e4ea706a0a9105cd4d1b4dda1f Mon Sep 17 00:00:00 2001 From: aryelciu001 Date: Tue, 4 Apr 2023 22:53:52 +0800 Subject: [PATCH] feat: im feeling lucky --- client/src/components/Claim/RewardsView.tsx | 17 +++++++++++--- .../hooks/cardano/claim/useClaimReward.tsx | 22 +++++-------------- client/src/pages/Cardano/Claim/index.tsx | 4 ++++ 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/client/src/components/Claim/RewardsView.tsx b/client/src/components/Claim/RewardsView.tsx index 19fd549f..23c60ea8 100644 --- a/client/src/components/Claim/RewardsView.tsx +++ b/client/src/components/Claim/RewardsView.tsx @@ -12,6 +12,8 @@ interface Props { isLoadingClaimReward: boolean; selectAll: () => void; poolInfo?: any; + maxTokenSelected: number; + selectRandomTokens: any; } export default function RewardsView({ @@ -22,6 +24,8 @@ export default function RewardsView({ isLoadingClaimReward, selectAll, poolInfo, + maxTokenSelected, + selectRandomTokens, }: Props) { if (claimableTokens.length > 0) { return ( @@ -93,17 +97,24 @@ export default function RewardsView({ className={"background flex flex-row items-center p-5 rounded-2xl"} >
Selected {numberOfSelectedTokens} token
-
+
+