Skip to content

Commit

Permalink
remove some package
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Sep 13, 2024
1 parent 745faab commit 19dcbd4
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 446 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@
"@0xsquid/sdk": "^2.8.1",
"@apollo/client": "^3.7.1",
"@blocto/wagmi-connector": "^2.0.4",
"@coinbase/wallet-sdk": "^3.0.4",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@holdstation/paymaster-helper": "^2.0.20",
"@kyberswap/krystal-walletconnect-v2": "0.0.1",
"@kyberswap/ks-sdk-classic": "^1.0.3",
"@kyberswap/ks-sdk-core": "1.1.5",
"@kyberswap/ks-sdk-elastic": "^1.1.2",
Expand Down
12 changes: 0 additions & 12 deletions patches/@web3modal+core+2.4.7.patch

This file was deleted.

9 changes: 8 additions & 1 deletion src/components/Header/web3/WalletModal/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ const Option = ({ connector }: { connector: Connector }) => {
onSuccess: () => {
closeWalletModal()
},
onError: e => {
console.log(e)
},
},
})

Expand All @@ -125,7 +128,11 @@ const Option = ({ connector }: { connector: Connector }) => {
<OptionCardClickable
role="button"
id={`connect-${name}`}
onClick={() => isAcceptedTerm && connect({ connector, chainId: chainId as any })}
onClick={() => {
if (isAcceptedTerm) {
connect({ connector, chainId: chainId as any })
}
}}
connected={isCurrentOptionPending}
isDisabled={!isAcceptedTerm}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/Web3Provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function injectedWithFallback() {
}

const WC_PARAMS = {
showQrModal: true,
projectId: WALLETCONNECT_PROJECT_ID,
metadata: {
name: 'KyberSwap',
Expand Down
Loading

0 comments on commit 19dcbd4

Please sign in to comment.