From 86cc091588a5c65ef7a562988be857784e14eae7 Mon Sep 17 00:00:00 2001 From: ChefMomota <98292246+ChefMomota@users.noreply.github.com> Date: Wed, 4 Oct 2023 22:02:36 +0800 Subject: [PATCH] feat: Add Simple Staking (#8036) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### 🤖 Generated by Copilot at 3bab618 ### Summary 🚀💰🔒 Added Simple Staking card to Home page. This feature allows users to stake CAKE tokens and earn rewards. Modified `EcoSystemSection/index.tsx` to import and render the card component. > _To show a new feature on Home_ > _Uncommented imports were done_ > _Added data for `EcoSystemSection`_ > _To display a card for Simple Staking_ > _A nice way to earn some income_ ### Walkthrough * Uncomment import statements for `earnFixedStaking` and `earnFixedStakingPurple` images ([link](https://github.com/pancakeswap/pancake-frontend/pull/8036/files?diff=unified&w=0#diff-eb773e70dc574977f184dfbdfca993e7fe13a5995b9f433ab192864c6ee2c6e5L23-R23), [link](https://github.com/pancakeswap/pancake-frontend/pull/8036/files?diff=unified&w=0#diff-eb773e70dc574977f184dfbdfca993e7fe13a5995b9f433ab192864c6ee2c6e5L39-R39)) * Add data object for Simple Staking feature to `useEarnBlockData` hook ([link](https://github.com/pancakeswap/pancake-frontend/pull/8036/files?diff=unified&w=0#diff-eb773e70dc574977f184dfbdfca993e7fe13a5995b9f433ab192864c6ee2c6e5R264-R271)) --- .../views/Home/components/EcoSystemSection/index.tsx | 12 ++++++++++-- packages/localization/src/config/translations.json | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/web/src/views/Home/components/EcoSystemSection/index.tsx b/apps/web/src/views/Home/components/EcoSystemSection/index.tsx index e46c31e47e8d2..5916e9c662022 100644 --- a/apps/web/src/views/Home/components/EcoSystemSection/index.tsx +++ b/apps/web/src/views/Home/components/EcoSystemSection/index.tsx @@ -20,7 +20,7 @@ import tradeBuy from '../../images/trade-buy-crypto.png' import earnFarm from '../../images/earn-farm.png' import earnPools from '../../images/earn-pools.png' import earnLiquidStaking from '../../images/earn-liquidity-staking.png' -// import earnFixedStaking from '../../images/earn-fixed-staking.png' +import earnFixedStaking from '../../images/earn-fixed-staking.png' import gamePrediction from '../../images/game-prediction.png' import gamePancakeProtectors from '../../images/game-pancake-protectors.png' import gameLottery from '../../images/game-lottery.png' @@ -36,7 +36,7 @@ import tradeBuyPurple from '../../images/trade-buy-crypto-purple.png' import earnFarmPurple from '../../images/earn-farm-purple.png' import earnPoolsPurple from '../../images/earn-pools-purple.png' import earnLiquidStakingPurple from '../../images/earn-liquidity-staking-purple.png' -// import earnFixedStakingPurple from '../../images/earn-fixed-staking-purple.png' +import earnFixedStakingPurple from '../../images/earn-fixed-staking-purple.png' import gamePredictionPurple from '../../images/game-prediction-purple.png' import gamePancakeProtectorsPurple from '../../images/game-pancake-protectors-purple.png' import gameLotteryPurple from '../../images/game-lottery-purple.png' @@ -261,6 +261,14 @@ const useEarnBlockData = () => { defaultImage: earnLiquidStakingPurple, path: '/liquid-staking', }, + { + title: t('Simple Staking'), + description: t('Earn rewards hassle-free with single-sided staking'), + ctaTitle: t('Stake Now'), + image: earnFixedStaking, + defaultImage: earnFixedStakingPurple, + path: '/simple-staking', + }, ] }, [t]) } diff --git a/packages/localization/src/config/translations.json b/packages/localization/src/config/translations.json index b83cb901b4e2b..ed40b0e1dfadb 100644 --- a/packages/localization/src/config/translations.json +++ b/packages/localization/src/config/translations.json @@ -2808,5 +2808,6 @@ "Share $10,000": "Share $10,000", "Predict now": "Predict now", "Trade now": "Trade now", - "Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard": "Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard" + "Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard": "Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard", + "Earn rewards hassle-free with single-sided staking": "Earn rewards hassle-free with single-sided staking" }