-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_app.tsx
51 lines (45 loc) · 1005 Bytes
/
_app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { ApolloProvider } from '@apollo/client'
import { useApollo } from '../apollo/client'
import Link from 'next/link'
import '../styles/globals.css'
import type { AppProps } from 'next/app'
const Header = () => (
<header>
<Link href="/">
<a>NFT Browser</a>
</Link>
<style jsx>{`
a {
background-color: transparent;
font-size: 14px;
font-weight: 600;
}
img {
vertical-align: middle;
margin-right: 10px;
}
`}</style>
</header>
)
const Footer = () => (
<footer>
<a href="https://github.com/schmidsi/nft-browser" target="_blank">
Github
</a>
<style jsx>{`
a {
font-size: 0.8em;
}
`}</style>
</footer>
)
export default function App({ Component, pageProps }: AppProps) {
const apolloClient = useApollo(pageProps)
return (
<ApolloProvider client={apolloClient}>
<Header />
<Component {...pageProps} />
<Footer />
</ApolloProvider>
)
}