-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from WalletConnect/feat/w3m-email-alpha
feat: initialize w3m email alpha
- Loading branch information
Showing
13 changed files
with
928 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,7 @@ video { | |
padding-bottom: 1rem; | ||
} | ||
} | ||
|
||
#w3m-iframe { | ||
border: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,57 @@ | ||
import React from 'react' | ||
|
||
import { createWeb3Modal, defaultWagmiConfig } from '@web3modal/wagmi/react' | ||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query' | ||
import { createWeb3Modal } from '@web3modal/wagmi/react' | ||
import ReactDOM from 'react-dom/client' | ||
import { BrowserRouter } from 'react-router-dom' | ||
import { WagmiConfig } from 'wagmi' | ||
import { arbitrum, avalanche, bsc, mainnet, polygon } from 'wagmi/chains' | ||
import { WagmiProvider } from 'wagmi' | ||
|
||
import { PRIVACY_POLICY_URL, TERMS_OF_SERVICE_URL } from '@/constants/web3Modal' | ||
import SettingsContextProvider from '@/contexts/SettingsContext' | ||
import W3iContextProvider from '@/contexts/W3iContext' | ||
import ConfiguredRoutes from '@/routes' | ||
import { polyfill } from '@/utils/polyfill' | ||
import { initSentry } from '@/utils/sentry' | ||
import { metadata, wagmiConfig } from '@/utils/wagmiConfig' | ||
|
||
import { Modals } from './Modals' | ||
import DevTimeStamp from './components/dev/DevTimeStamp' | ||
|
||
import './index.css' | ||
import DevTimeStamp from './components/dev/DevTimeStamp' | ||
|
||
polyfill() | ||
initSentry() | ||
|
||
const projectId = import.meta.env.VITE_PROJECT_ID | ||
const chains = [mainnet, arbitrum, polygon, avalanche, bsc] | ||
|
||
const metadata = { | ||
name: 'Web3Inbox', | ||
description: 'Notification Hub', | ||
url: 'https://app.web3inbox.com', | ||
icons: ['https://app.web3inbox.com/logo.png'] | ||
} | ||
const wagmiConfig = defaultWagmiConfig({ chains, projectId, metadata }) | ||
|
||
createWeb3Modal({ | ||
wagmiConfig, | ||
enableAnalytics: import.meta.env.PROD, | ||
chains, | ||
projectId, | ||
termsConditionsUrl: TERMS_OF_SERVICE_URL, | ||
privacyPolicyUrl: PRIVACY_POLICY_URL, | ||
themeMode: 'light', | ||
themeVariables: { '--w3m-z-index': 9999 }, | ||
termsConditionsUrl: TERMS_OF_SERVICE_URL, | ||
privacyPolicyUrl: PRIVACY_POLICY_URL | ||
metadata | ||
}) | ||
|
||
const queryClient = new QueryClient() | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
ReactDOM.createRoot(document.getElementById('root')!).render( | ||
<React.StrictMode> | ||
<WagmiConfig config={wagmiConfig}> | ||
<SettingsContextProvider> | ||
<BrowserRouter> | ||
<W3iContextProvider> | ||
<ConfiguredRoutes /> | ||
<DevTimeStamp /> | ||
<Modals /> | ||
</W3iContextProvider> | ||
</BrowserRouter> | ||
</SettingsContextProvider> | ||
</WagmiConfig> | ||
<WagmiProvider config={wagmiConfig}> | ||
<QueryClientProvider client={queryClient}> | ||
<SettingsContextProvider> | ||
<BrowserRouter> | ||
<W3iContextProvider> | ||
<ConfiguredRoutes /> | ||
<DevTimeStamp /> | ||
<Modals /> | ||
</W3iContextProvider> | ||
</BrowserRouter> | ||
</SettingsContextProvider> | ||
</QueryClientProvider> | ||
</WagmiProvider> | ||
</React.StrictMode> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { arbitrum, avalanche, bsc, mainnet, polygon } from '@wagmi/core/chains' | ||
import { defaultWagmiConfig } from '@web3modal/wagmi' | ||
|
||
const projectId = import.meta.env.VITE_PROJECT_ID | ||
|
||
export const metadata = { | ||
name: 'Web3Inbox', | ||
description: 'Web3Inbox App', | ||
url: 'https://web3inbox.com', | ||
icons: ['https://assets.web3inbox.com/images/w3i-app-logo.png'] | ||
} | ||
|
||
export const wagmiConfig = defaultWagmiConfig({ | ||
chains: [mainnet, arbitrum, polygon, avalanche, bsc], | ||
projectId, | ||
metadata, | ||
enableEmail: true | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.