From bc72a48c2335c12b78ea0c34b0fe52982b391fd3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 21:29:07 +0000 Subject: [PATCH 1/3] fix(deps): update dependency @vercel/node to v3.2.9 --- packages/react-app-revamp/package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/react-app-revamp/package.json b/packages/react-app-revamp/package.json index 0261a41cb..106760682 100644 --- a/packages/react-app-revamp/package.json +++ b/packages/react-app-revamp/package.json @@ -42,7 +42,7 @@ "@types/underscore": "1.11.15", "@types/uuid": "10.0.0", "@typescript-eslint/parser": "7.18.0", - "@vercel/node": "3.2.8", + "@vercel/node": "3.2.9", "@wagmi/connectors": "5.1.7", "@wagmi/core": "2.13.4", "autoprefixer": "10.4.20", diff --git a/yarn.lock b/yarn.lock index d3cfb6d70..654babc5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8287,10 +8287,10 @@ resolved "https://registry.yarnpkg.com/@vanilla-extract/sprinkles/-/sprinkles-1.6.1.tgz#2c8a832757a0d8104dc6bd5d961db2c70d1dbdcb" integrity sha512-N/RGKwGAAidBupZ436RpuweRQHEFGU+mvAqBo8PRMAjJEmHoPDttV8RObaMLrJHWLqvX+XUMinHUnD0hFRQISw== -"@vercel/build-utils@8.3.6": - version "8.3.6" - resolved "https://registry.yarnpkg.com/@vercel/build-utils/-/build-utils-8.3.6.tgz#f85ebb753433500f177c04c0f4c784108a4afda8" - integrity sha512-EPwr8tXu41aoXg9QBiF98clu5AHbKtwbp3SeX/W6c8L0fhLwiT+H/s3WDuOL/UMz0TT3B8JAdY4PZioWNEAf6g== +"@vercel/build-utils@8.3.7": + version "8.3.7" + resolved "https://registry.yarnpkg.com/@vercel/build-utils/-/build-utils-8.3.7.tgz#4859c1d0c605b3392dd5ba82a49ebae755f2ce4c" + integrity sha512-xscYxdzQ2IAMNbXlldbTZv1+YtD/Yq/EXgruqFBTZ/ofh+GIMCig1YrJh2CS6R2B2ja77szUiel//T8lRrDN1g== "@vercel/error-utils@2.0.2": version "2.0.2" @@ -8315,16 +8315,16 @@ node-gyp-build "^4.2.2" resolve-from "^5.0.0" -"@vercel/node@3.2.8": - version "3.2.8" - resolved "https://registry.yarnpkg.com/@vercel/node/-/node-3.2.8.tgz#03ea22bea999c21ecb24cf40587ad26a987b8b12" - integrity sha512-mINg3ab1FHIqupZlLVpmCvyqGtkafnyNesgs7ZoCbNxqbb4ZrHtPj1kHv9cvTrFlDkFapkV/Ez8nbSsHeAxtOw== +"@vercel/node@3.2.9": + version "3.2.9" + resolved "https://registry.yarnpkg.com/@vercel/node/-/node-3.2.9.tgz#bd088cdd4de90d8a2164aed46c577a9344976a46" + integrity sha512-q3HLv+yIU3sOFS82GltdjFiBXt8cRcPmDKD3lI0z4cDLb2FSJeGE4yYqK7FxZmO8E5Hqzrm2uUoy5Mw3XERTmw== dependencies: "@edge-runtime/node-utils" "2.3.0" "@edge-runtime/primitives" "4.1.0" "@edge-runtime/vm" "3.2.0" "@types/node" "16.18.11" - "@vercel/build-utils" "8.3.6" + "@vercel/build-utils" "8.3.7" "@vercel/error-utils" "2.0.2" "@vercel/nft" "0.27.3" "@vercel/static-config" "3.0.0" From ba76d7661d5cc53e97a9548808166e4d21312938 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 24 Aug 2024 02:09:04 +0000 Subject: [PATCH 2/3] fix(deps): update dependency eslint to v9.9.1 --- packages/react-app-revamp/package.json | 2 +- yarn.lock | 28 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/react-app-revamp/package.json b/packages/react-app-revamp/package.json index 106760682..3fdd9b34c 100644 --- a/packages/react-app-revamp/package.json +++ b/packages/react-app-revamp/package.json @@ -50,7 +50,7 @@ "class-variance-authority": "0.7.0", "compare-versions": "6.1.1", "date-fns": "3.6.0", - "eslint": "9.9.0", + "eslint": "9.9.1", "eslint-config-next": "14.2.6", "ethers": "5.7.2", "frog": "0.11.4", diff --git a/yarn.lock b/yarn.lock index 654babc5c..7b647957e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3403,10 +3403,10 @@ resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz#b0ffd0312b4a3fd2d6f77237e7248a5ad3a680ae" integrity sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A== -"@eslint/config-array@^0.17.1": - version "0.17.1" - resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.17.1.tgz#d9b8b8b6b946f47388f32bedfd3adf29ca8f8910" - integrity sha512-BlYOpej8AQ8Ev9xVqroV7a02JK3SkBAaN9GfMMH9W6Ch8FlQlkjGw4Ir7+FgYwfirivAf4t+GtzuAxqfukmISA== +"@eslint/config-array@^0.18.0": + version "0.18.0" + resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.18.0.tgz#37d8fe656e0d5e3dbaea7758ea56540867fd074d" + integrity sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw== dependencies: "@eslint/object-schema" "^2.1.4" debug "^4.3.1" @@ -3427,10 +3427,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@9.9.0": - version "9.9.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.9.0.tgz#d8437adda50b3ed4401964517b64b4f59b0e2638" - integrity sha512-hhetes6ZHP3BlXLxmd8K2SNgkhNSi+UcecbnwWKwpP7kyi/uC75DJ1lOOBO3xrC4jyojtGE3YxKZPHfk4yrgug== +"@eslint/js@9.9.1": + version "9.9.1" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.9.1.tgz#4a97e85e982099d6c7ee8410aacb55adaa576f06" + integrity sha512-xIDQRsfg5hNBqHz04H1R3scSVwmI+KUbqjsQKHKQ1DAUSaUjYPReZZmS/5PNiKu1fUvzDd6H7DEDKACSEhu+TQ== "@eslint/object-schema@^2.1.4": version "2.1.4" @@ -11367,16 +11367,16 @@ eslint-visitor-keys@^4.0.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz#e3adc021aa038a2a8e0b2f8b0ce8f66b9483b1fb" integrity sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw== -eslint@9.9.0: - version "9.9.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.9.0.tgz#8d214e69ae4debeca7ae97daebbefe462072d975" - integrity sha512-JfiKJrbx0506OEerjK2Y1QlldtBxkAlLxT5OEcRF8uaQ86noDe2k31Vw9rnSWv+MXZHj7OOUV/dA0AhdLFcyvA== +eslint@9.9.1: + version "9.9.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.9.1.tgz#147ac9305d56696fb84cf5bdecafd6517ddc77ec" + integrity sha512-dHvhrbfr4xFQ9/dq+jcVneZMyRYLjggWjk6RVsIiHsP8Rz6yZ8LvZ//iU4TrZF+SXWG+JkNF2OyiZRvzgRDqMg== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.11.0" - "@eslint/config-array" "^0.17.1" + "@eslint/config-array" "^0.18.0" "@eslint/eslintrc" "^3.1.0" - "@eslint/js" "9.9.0" + "@eslint/js" "9.9.1" "@humanwhocodes/module-importer" "^1.0.1" "@humanwhocodes/retry" "^0.3.0" "@nodelib/fs.walk" "^1.2.8" From 834d85a959e106ecd27584867d7ae0ea5b0bb7f2 Mon Sep 17 00:00:00 2001 From: zho Date: Sat, 24 Aug 2024 11:06:29 +0200 Subject: [PATCH 3/3] 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 ? (