167cf20bfc
* Add a couple missing dependencies for hooks * Upgrade eslint This newer eslint and typescript-eslint fixes some spurious warnings that were bugs and supports our version of Typescript. * Use Next Script component the way it wants us to * Rephrase ContractLeaderboard component to avoid useEffect woes * Use perhaps more idiomatic type for ContractLeaderboard props * Make Folds data fetching more correct and more clear
66 lines
2.1 KiB
XML
66 lines
2.1 KiB
XML
import 'tailwindcss/tailwind.css'
|
|
import type { AppProps } from 'next/app'
|
|
import Head from 'next/head'
|
|
import Script from 'next/script'
|
|
import { usePreserveScroll } from 'web/hooks/use-preserve-scroll'
|
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
usePreserveScroll()
|
|
|
|
return (
|
|
<>
|
|
<Script src="https://www.googletagmanager.com/gtag/js?id=G-SSFK1Q138D" />
|
|
<Script id="google-analytics">
|
|
{`
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', 'G-SSFK1Q138D');
|
|
`}
|
|
</Script>
|
|
<Head>
|
|
<title>Manifold Markets — A market for every question</title>
|
|
|
|
<meta
|
|
property="og:title"
|
|
name="twitter:title"
|
|
content="Manifold Markets — A market for every question"
|
|
key="title"
|
|
/>
|
|
<meta
|
|
name="description"
|
|
content="Manifold Markets lets you create a market on any question. Sign up in 30 seconds and start trading on politics, sports, or anything that interests you."
|
|
key="description1"
|
|
/>
|
|
<meta
|
|
property="og:description"
|
|
name="twitter:description"
|
|
content="Manifold Markets lets you create a market on any question. Sign up in 30 seconds and start trading on politics, sports, or anything that interests you."
|
|
key="description2"
|
|
/>
|
|
<meta property="og:url" content="https://manifold.markets" key="url" />
|
|
<meta name="twitter:card" content="summary" key="card" />
|
|
<meta name="twitter:site" content="@manifoldmarkets" />
|
|
<meta
|
|
property="og:image"
|
|
content="https://manifold.markets/logo-cover.png"
|
|
key="image1"
|
|
/>
|
|
<meta
|
|
name="twitter:image"
|
|
content="https://manifold.markets/logo-bg-white.png"
|
|
key="image2"
|
|
/>
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, maximum-scale=1"
|
|
/>
|
|
</Head>
|
|
|
|
<Component {...pageProps} />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default MyApp
|