From 9dadf6509e1cf3f8dfd0a047fffcb3c85690946e Mon Sep 17 00:00:00 2001 From: Catalin Rosu Date: Thu, 30 Jan 2025 16:23:44 +0200 Subject: [PATCH] Randomize the wallets data (#178) * Randomize the wallets data * Update circle's url --- src/components/wallets/WalletCard.jsx | 10 ++++++++-- src/components/wallets/Wallets.jsx | 26 ++++++++++++++------------ src/data/wallets/wallet-data.js | 3 +-- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/components/wallets/WalletCard.jsx b/src/components/wallets/WalletCard.jsx index 79fcdfd9..aaa5a1d4 100644 --- a/src/components/wallets/WalletCard.jsx +++ b/src/components/wallets/WalletCard.jsx @@ -13,13 +13,19 @@ const WalletCard = ({ index, walletImage, name, body, websiteUrl }) => { height={60} alt={name} className={styles["wallet-card-icon"]} + suppressHydrationWarning > -

{name}

-

{body}

+

+ {name} +

+

+ {body} +

{t("wallets.card.view-details")} diff --git a/src/components/wallets/Wallets.jsx b/src/components/wallets/Wallets.jsx index 9a03f612..b3b75b06 100644 --- a/src/components/wallets/Wallets.jsx +++ b/src/components/wallets/Wallets.jsx @@ -12,18 +12,20 @@ const Wallets = ({ walletData, resetWalletsAndFilters }) => {

{t("wallets.grid.title")}

{walletData.length ? ( - walletData.map((wallet, key) => { - return ( - - ); - }) + walletData + .sort(() => Math.random() - 0.5) + .map((wallet, key) => { + return ( + + ); + }) ) : (

diff --git a/src/data/wallets/wallet-data.js b/src/data/wallets/wallet-data.js index 3e5812af..37df8f51 100644 --- a/src/data/wallets/wallet-data.js +++ b/src/data/wallets/wallet-data.js @@ -295,8 +295,7 @@ export const walletData = [ { name: "Circle", body: "Circle: Built for Developers — Create the next revolutionary app powered by Circle digital currency and Web3 wallets.", - website: - "https://www.circle.com/en/?utm_term=circle%20crypto&utm_campaign=ENV+-+G+-+Search+-+Brand+-+Circle+Brand+-+BM&utm_source=adwords&utm_medium=ppc&hsa_acc=2894751369&hsa_cam=21275683630&hsa_grp=161485174945&hsa_ad=698997839918&hsa_src=g&hsa_tgt=kwd-406962479483&hsa_kw=circle%20crypto&hsa_mt=b&hsa_net=adwords&hsa_ver=3&gad_source=1&gclid=Cj0KCQjwt4a2BhD6ARIsALgH7Dr8b1BWSEQNruIubu5OfrHeciikyVpAAGh2Y9QlJJ9f3QJzoBcW7sMaAjCdEALw_wcB", + website: "https://www.circle.com/programmable-wallets", additionalInfo: "Non-Custodial/Self Custodial • Token Extentions • Hold NFTs • Gas abstraction", icon: circleIcon,