mirror of
https://github.com/kremalicious/blog.git
synced 2025-01-05 11:25:07 +01:00
rainbowkit updates
This commit is contained in:
parent
5fb162ae16
commit
1d4dc51a7a
1138
package-lock.json
generated
1138
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,14 +1,11 @@
|
|||||||
import {
|
import { getDefaultWallets, Theme } from '@rainbow-me/rainbowkit'
|
||||||
configureChains,
|
import { chain, createClient, configureChains } from 'wagmi'
|
||||||
apiProvider,
|
import { infuraProvider } from 'wagmi/providers/infura'
|
||||||
getDefaultWallets,
|
import { publicProvider } from 'wagmi/providers/public'
|
||||||
Theme
|
|
||||||
} from '@rainbow-me/rainbowkit'
|
|
||||||
import { chain, createClient } from 'wagmi'
|
|
||||||
|
|
||||||
export const { chains, provider } = configureChains(
|
export const { chains, provider } = configureChains(
|
||||||
[chain.mainnet, chain.polygon, chain.optimism, chain.arbitrum, chain.rinkeby],
|
[chain.mainnet, chain.polygon, chain.optimism, chain.arbitrum, chain.rinkeby],
|
||||||
[apiProvider.infura(process.env.INFURA_ID), apiProvider.fallback()]
|
[infuraProvider({ infuraId: process.env.INFURA_ID }), publicProvider()]
|
||||||
)
|
)
|
||||||
|
|
||||||
export const { connectors } = getDefaultWallets({
|
export const { connectors } = getDefaultWallets({
|
||||||
@ -22,7 +19,7 @@ export const wagmiClient = createClient({
|
|||||||
provider
|
provider
|
||||||
})
|
})
|
||||||
|
|
||||||
export const theme: Theme = {
|
export const theme = {
|
||||||
colors: {
|
colors: {
|
||||||
accentColor: 'var(--brand-cyan)',
|
accentColor: 'var(--brand-cyan)',
|
||||||
accentColorForeground: '#161a1b',
|
accentColorForeground: '#161a1b',
|
||||||
@ -71,4 +68,4 @@ export const theme: Theme = {
|
|||||||
selectedWallet: 'var(--box-shadow)',
|
selectedWallet: 'var(--box-shadow)',
|
||||||
walletLogo: 'var(--box-shadow)'
|
walletLogo: 'var(--box-shadow)'
|
||||||
}
|
}
|
||||||
}
|
} as Theme
|
||||||
|
Loading…
Reference in New Issue
Block a user