-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update wagmi library for 0.3.5 (#350)
- Loading branch information
1 parent
012cf6c
commit ee73155
Showing
6 changed files
with
265 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
import React from 'react'; | ||
import React from 'react' | ||
|
||
import {TranslationProvider} from '@modules/localization'; | ||
import { TranslationProvider } from '@modules/localization' | ||
|
||
import Layout from '@modules/layouts/site_layout'; | ||
import {NavigationProvider} from '@modules/navigation'; | ||
import {Provider} from 'wagmi'; | ||
import {connectors, provider, connectorStorageKey} from '@src/course/connect'; | ||
import Layout from '@modules/layouts/site_layout' | ||
import { NavigationProvider } from '@modules/navigation' | ||
import { Provider, createClient } from 'wagmi' | ||
import { connectors, provider, connectorStorageKey } from '@src/course/connect' | ||
//Load our Primsjs css and Fonts | ||
import '@modules/layouts/global.css'; //<- Load in Prismjs css. Our custom styles have to be loaded this way cause Prismjs is blackboxed from our own code. | ||
import '@modules/layouts/global.css' //<- Load in Prismjs css. Our custom styles have to be loaded this way cause Prismjs is blackboxed from our own code. | ||
|
||
export const wrapRootElement = ({element}) => ( | ||
const client = createClient({ | ||
autoConnect: true, | ||
connectors, | ||
provider, | ||
connectorStorageKey, | ||
}) | ||
|
||
export const wrapRootElement = ({ element }) => ( | ||
<TranslationProvider> | ||
<Provider | ||
autoConnect | ||
connectors={connectors} | ||
provider={provider} | ||
connectorStorageKey={connectorStorageKey}> | ||
{element} | ||
</Provider> | ||
<Provider client={client}>{element}</Provider> | ||
</TranslationProvider> | ||
); | ||
) | ||
|
||
export const wrapPageElement = ({element, props}) => ( | ||
export const wrapPageElement = ({ element, props }) => ( | ||
<NavigationProvider> | ||
<Layout {...props}>{element}</Layout> | ||
</NavigationProvider> | ||
); | ||
) |
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
Oops, something went wrong.