From 59a3d81d7a6dbac86dace05ca31be5eaf2fe585f Mon Sep 17 00:00:00 2001 From: RodrigoCSolari Date: Mon, 29 Aug 2022 16:46:56 -0300 Subject: [PATCH] fix: near button --- .gitignore | 1 + src/assets/{near_icon.png => near-icon.png} | Bin src/contexts/WalletSelectorContext.css | 9 +++++---- src/contexts/WalletSelectorContext.tsx | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) rename src/assets/{near_icon.png => near-icon.png} (100%) diff --git a/.gitignore b/.gitignore index 4d29575..0846f83 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +.vercel diff --git a/src/assets/near_icon.png b/src/assets/near-icon.png similarity index 100% rename from src/assets/near_icon.png rename to src/assets/near-icon.png diff --git a/src/contexts/WalletSelectorContext.css b/src/contexts/WalletSelectorContext.css index 3fb142d..a9f3d5e 100644 --- a/src/contexts/WalletSelectorContext.css +++ b/src/contexts/WalletSelectorContext.css @@ -451,24 +451,25 @@ } } -.nws-modal-wrapper.dark-theme .modal #near-wallet img, +/*.nws-modal-wrapper.dark-theme .modal #near-wallet img, .nws-modal-wrapper.dark-theme .modal #math-wallet img, .nws-modal-wrapper.dark-theme .modal #ledger img, .nws-modal-wrapper.dark-theme .modal .wallet-not-installed-wrapper .math-wallet img { filter: invert(1); } - +*/ .nws-modal-wrapper.dark-theme .spinner .icon { box-shadow: 0 10px 20px 0 rgb(255 255 255 / 5%) } @media (prefers-color-scheme: dark) { - .nws-modal-wrapper .modal #near-wallet img, + + /*.nws-modal-wrapper .modal #near-wallet img, .nws-modal-wrapper .modal #math-wallet img, .nws-modal-wrapper .modal #ledger img, .nws-modal-wrapper .modal .wallet-not-installed-wrapper .math-wallet img { filter: invert(1); - } + }*/ .nws-modal-wrapper .spinner .icon { box-shadow: 0 10px 20px 0 rgb(255 255 255 / 5%) diff --git a/src/contexts/WalletSelectorContext.tsx b/src/contexts/WalletSelectorContext.tsx index 04ed228..653eefb 100644 --- a/src/contexts/WalletSelectorContext.tsx +++ b/src/contexts/WalletSelectorContext.tsx @@ -18,7 +18,7 @@ import { TicTacToeContract } from "../near/contracts/TicTacToe"; import { SelectorWallet } from "../near/wallet/wallet-selector"; import { ENV, getEnv } from "../near/config"; import { TicTacToeLogic } from "../near/logics/TicTacToeLogic"; -import nearIcon from "../assets/near_icon.png"; +import nearIcon from "../assets/near-icon.png"; import senderIcon from "../assets/sender-icon.png"; declare global {