From 1f1242d834c5b4ee6322b2135629522764142e90 Mon Sep 17 00:00:00 2001 From: Thibault Jaillard Date: Wed, 16 Aug 2023 15:44:45 -0400 Subject: [PATCH 1/4] Add Chance to win button --- src/locales/en.ts | 3 ++- src/pages/Pools/Pools.scss | 4 ++-- src/pages/Pools/components/PoolCard.tsx | 15 +++++---------- .../LatestWinnersTable/LatestWinnersTable.tsx | 2 +- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index 9c3c5ca3..dc35f5f3 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -273,8 +273,9 @@ export default { tvl: 'TVL:', apy: 'Estimated APR:', cta: 'Deposit in Pool', + viewDetails: 'Chance to win', drawEndAt: 'Next draw in:', - poolId: 'Pool #{{ poolId }}', + poolId: 'Pool', }, poolDetails: { myDeposits: 'My {{ denom }} deposits', diff --git a/src/pages/Pools/Pools.scss b/src/pages/Pools/Pools.scss index 6c1c1725..bb8ffd38 100644 --- a/src/pages/Pools/Pools.scss +++ b/src/pages/Pools/Pools.scss @@ -11,11 +11,11 @@ display: flex; flex-direction: column; align-items: stretch; - height: 400px; + height: 440px; justify-content: space-between; @include media-breakpoint-up(xl) { - height: 440px; + height: 470px; } .name-container { diff --git a/src/pages/Pools/components/PoolCard.tsx b/src/pages/Pools/components/PoolCard.tsx index b37115d3..c4ebfda4 100644 --- a/src/pages/Pools/components/PoolCard.tsx +++ b/src/pages/Pools/components/PoolCard.tsx @@ -1,5 +1,4 @@ import React, { useState } from 'react'; -import { useNavigate } from 'react-router-dom'; import { useSelector } from 'react-redux'; import numeral from 'numeral'; @@ -24,19 +23,12 @@ const PoolCard = ({ denom, tvl, poolId, estimatedPrize, drawEndAt, apy }: IProps const loadingAdditionalInfo = useSelector((state: RootState) => state.loading.effects.pools.getPoolsAdditionalInfo); const lumWallet = useSelector((state: RootState) => state.wallet.lumWallet); - const navigate = useNavigate(); - const [drawInProgress, setDrawInProgress] = useState(false); const price = prices?.[denom]; return ( - { - navigate(`${NavigationConstants.POOL_DETAILS}/${denom}/${poolId}`); - }} - > +
{denom}
@@ -83,6 +75,9 @@ const PoolCard = ({ denom, tvl, poolId, estimatedPrize, drawEndAt, apy }: IProps
+
-