From bf2eae0e82fe3c33babda0c52257e541310431fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Mi=C3=B1o?= Date: Thu, 13 Jun 2024 14:38:47 -0400 Subject: [PATCH 1/2] addmethod --- package.json | 4 ++-- src/entries/background/handlers/handleProviderRequest.ts | 2 ++ yarn.lock | 7 +++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8e1cdd3c88..bc32677b4b 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@radix-ui/react-select": "1.2.1", "@radix-ui/react-tabs": "1.0.4", "@radix-ui/react-tooltip": "1.0.3", - "@rainbow-me/provider": "0.1.0", + "@rainbow-me/provider": "../rainbow-provider/rainbow-me-provider-v0.1.1.tgz", "@rainbow-me/swaps": "0.19.0", "@rudderstack/analytics-js-service-worker": "3.0.6", "@scure/bip39": "1.2.1", @@ -327,4 +327,4 @@ "wagmi>@wagmi/connectors>@metamask/sdk>eciesjs>secp256k1": false } } -} \ No newline at end of file +} diff --git a/src/entries/background/handlers/handleProviderRequest.ts b/src/entries/background/handlers/handleProviderRequest.ts index d95fe247f9..9a988fa6fe 100644 --- a/src/entries/background/handlers/handleProviderRequest.ts +++ b/src/entries/background/handlers/handleProviderRequest.ts @@ -250,6 +250,8 @@ export const handleProviderRequest = ({ SUPPORTED_CHAIN_IDS.includes(chainId) || isCustomChain(chainId), getActiveSession: ({ host }: { host: string }) => appSessionsStore.getState().getActiveSession({ host }), + removeAppSession: ({ host }: { host: string }) => + appSessionsStore.getState().removeAppSession({ host }), getChainNativeCurrency: (chainId: number) => SUPPORTED_CHAINS.find((chain) => chain.id === Number(chainId)) ?.nativeCurrency, diff --git a/yarn.lock b/yarn.lock index 1844a7d56a..bfb95c3094 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3527,10 +3527,9 @@ dependencies: "@babel/runtime" "^7.13.10" -"@rainbow-me/provider@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@rainbow-me/provider/-/provider-0.1.0.tgz#7b577604be26f3397085f90b3440aa7528e71e03" - integrity sha512-Omn4GTA92aRMRKj+cT/ixP/aQYCt5WXTQ1ZTBYt4E2B99s68MKlIAKLvqXMtk9KuhMJm5H1rUtjViZ3uuudfvA== +"@rainbow-me/provider@../rainbow-provider/rainbow-me-provider-v0.1.1.tgz": + version "0.1.1" + resolved "../rainbow-provider/rainbow-me-provider-v0.1.1.tgz#5e1b60432eb843f5d222e0bc3c8a93ffa9b33271" dependencies: "@ethersproject/abstract-provider" "5.7.0" "@ethersproject/bignumber" "5.7.0" From ee025c65438994089609f72a2e34aade20ee066c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Mi=C3=B1o?= Date: Mon, 17 Jun 2024 12:57:14 -0400 Subject: [PATCH 2/2] package --- package.json | 2 +- src/entries/popup/pages/home/Tokens.tsx | 10 ++++++---- yarn.lock | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index bc32677b4b..e2242acaf9 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@radix-ui/react-select": "1.2.1", "@radix-ui/react-tabs": "1.0.4", "@radix-ui/react-tooltip": "1.0.3", - "@rainbow-me/provider": "../rainbow-provider/rainbow-me-provider-v0.1.1.tgz", + "@rainbow-me/provider": "0.1.1", "@rainbow-me/swaps": "0.19.0", "@rudderstack/analytics-js-service-worker": "3.0.6", "@scure/bip39": "1.2.1", diff --git a/src/entries/popup/pages/home/Tokens.tsx b/src/entries/popup/pages/home/Tokens.tsx index f8c22bf658..6d0f23ecb6 100644 --- a/src/entries/popup/pages/home/Tokens.tsx +++ b/src/entries/popup/pages/home/Tokens.tsx @@ -517,10 +517,11 @@ function TokensEmptyState({ depositAddress }: EmptyStateProps) { borderRadius="16px" padding="16px" style={{ - boxShadow: `0 0 0 1px ${currentTheme === 'dark' + boxShadow: `0 0 0 1px ${ + currentTheme === 'dark' ? 'rgba(245, 248, 255, 0.025)' : 'rgba(9, 17, 31, 0.03)' - } inset`, + } inset`, }} > @@ -576,10 +577,11 @@ function TokensEmptyState({ depositAddress }: EmptyStateProps) { borderRadius="16px" padding="16px" style={{ - boxShadow: `0 0 0 1px ${currentTheme === 'dark' + boxShadow: `0 0 0 1px ${ + currentTheme === 'dark' ? 'rgba(245, 248, 255, 0.025)' : 'rgba(9, 17, 31, 0.03)' - } inset`, + } inset`, }} > diff --git a/yarn.lock b/yarn.lock index bfb95c3094..ac469299c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3527,9 +3527,10 @@ dependencies: "@babel/runtime" "^7.13.10" -"@rainbow-me/provider@../rainbow-provider/rainbow-me-provider-v0.1.1.tgz": +"@rainbow-me/provider@0.1.1": version "0.1.1" - resolved "../rainbow-provider/rainbow-me-provider-v0.1.1.tgz#5e1b60432eb843f5d222e0bc3c8a93ffa9b33271" + resolved "https://registry.yarnpkg.com/@rainbow-me/provider/-/provider-0.1.1.tgz#41e786798bc032327d1f5de582eceb14dddb556d" + integrity sha512-VLISTlu3waIByb3D6izLUB/XbNDZ4VKH8L78fwIwyiC2+Npel8ghGiM/xAlzb/CDgAmA7duWplb/mAzCYWg2fw== dependencies: "@ethersproject/abstract-provider" "5.7.0" "@ethersproject/bignumber" "5.7.0"