2021-10-27 12:27:14 +02:00
|
|
|
// import App from "next/app";
|
2020-07-01 18:57:10 +02:00
|
|
|
import React, { ReactElement } from 'react'
|
2021-10-27 12:27:14 +02:00
|
|
|
import type { AppProps /*, AppContext */ } from 'next/app'
|
2021-10-18 20:44:33 +02:00
|
|
|
import Web3Provider from '@context/Web3'
|
|
|
|
import { UserPreferencesProvider } from '@context/UserPreferences'
|
|
|
|
import PricesProvider from '@context/Prices'
|
|
|
|
import UrqlProvider from '@context/UrqlProvider'
|
|
|
|
import ConsentProvider from '@context/CookieConsent'
|
2021-10-27 12:27:14 +02:00
|
|
|
import App from 'src/components/App'
|
2020-07-01 18:57:10 +02:00
|
|
|
|
2021-10-27 12:27:14 +02:00
|
|
|
import '@oceanprotocol/typographies/css/ocean-typo.css'
|
|
|
|
import '../stylesGlobal/styles.css'
|
2022-04-22 02:38:35 +02:00
|
|
|
import Decimal from 'decimal.js'
|
|
|
|
import MarketMetadataProvider from '@context/MarketMetadata'
|
2021-10-27 12:27:14 +02:00
|
|
|
|
|
|
|
function MyApp({ Component, pageProps }: AppProps): ReactElement {
|
2022-04-22 02:38:35 +02:00
|
|
|
Decimal.set({ rounding: 1 })
|
2020-08-07 10:17:06 +02:00
|
|
|
return (
|
2022-04-22 02:54:04 +02:00
|
|
|
<MarketMetadataProvider>
|
|
|
|
<Web3Provider>
|
|
|
|
<UrqlProvider>
|
2022-04-22 02:38:35 +02:00
|
|
|
<UserPreferencesProvider>
|
|
|
|
<PricesProvider>
|
|
|
|
<ConsentProvider>
|
|
|
|
<App>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</App>
|
|
|
|
</ConsentProvider>
|
|
|
|
</PricesProvider>
|
|
|
|
</UserPreferencesProvider>
|
2022-04-22 02:54:04 +02:00
|
|
|
</UrqlProvider>
|
|
|
|
</Web3Provider>
|
|
|
|
</MarketMetadataProvider>
|
2020-08-07 10:17:06 +02:00
|
|
|
)
|
|
|
|
}
|
2021-10-27 12:27:14 +02:00
|
|
|
|
|
|
|
export default MyApp
|