Skip to content

Commit

Permalink
fix: custom modal
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Sep 13, 2024
1 parent 19dcbd4 commit b8eb8f2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/Web3Provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ function injectedWithFallback() {
}

const WC_PARAMS = {
methods: ['eth_sendTransaction', 'personal_sign', 'eth_signTypedData_v4'],
optionalMethods: ['eth_signTypedData', 'eth_sign'],
showQrModal: true,
projectId: WALLETCONNECT_PROJECT_ID,
metadata: {
Expand All @@ -133,12 +135,13 @@ const WC_PARAMS = {
chainImages: undefined,
themeMode: 'dark' as const,
themeVariables: {
'--w3m-z-index': '1000',
'--w3m-logo-image-url': Kyber,
'--w3m-background-image-url': WC_BG,
'--w3m-accent-color': '#31CB9E',
'--w3m-accent-fill-color': '#222222',
'--w3m-color-bg-1': '#0F0F0F',
'--wcm-z-index': '1000',
'--wcm-logo-image-url': Kyber,
'--wcm-background-image-url': WC_BG,
'--wcm-accent-color': '#31CB9E',
'--wcm-accent-fill-color': '#222222',
'--wcm-color-bg-1': '#0F0F0F',
'--wcm-background-color': '#31CB9E',
} as any,
},
}
Expand Down

0 comments on commit b8eb8f2

Please sign in to comment.