Skip to content

Commit 2ee0bee

Browse files
authored
Merge pull request #138 from Developer-DAO/fix/head
add head tag to root
2 parents 00795c6 + 6e10758 commit 2ee0bee

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

pages/_app.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ChakraProvider, Box } from '@chakra-ui/react'
22
import type { AppProps } from 'next/app'
3+
import Head from 'next/head'
34
import { WalletProvider } from '../components/WalletProvider'
45
import { theme } from '../theme'
56
import Header from '../components/Header'
@@ -10,6 +11,11 @@ import { DefaultSeo } from 'next-seo'
1011
function MyApp({ Component, pageProps }: AppProps) {
1112
return (
1213
<ChakraProvider theme={theme}>
14+
<Head>
15+
<title>D_D Academy</title>
16+
<meta name="description" content="Generated by create next app" />
17+
<link rel="icon" href="/favicon.ico" />
18+
</Head>
1319
<WalletProvider>
1420
<DefaultSeo
1521
openGraph={{

pages/getting-started/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Head from 'next/head'
21
import NextLink from 'next/link'
32
import {
43
Heading,
@@ -34,11 +33,6 @@ const GettingStarted: React.FC<LessonProps> = ({ lessons }) => {
3433

3534
return (
3635
<>
37-
<Head>
38-
<title>D_D Academy</title>
39-
<meta name="description" content="Generated by create next app" />
40-
<link rel="icon" href="/favicon.ico" />
41-
</Head>
4236
<Flex
4337
as="main"
4438
py={5}

pages/lessons/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Head from 'next/head'
21
import { Flex, Stack, Heading } from '@chakra-ui/react'
32
import fs from 'fs'
43
import path from 'path'
@@ -23,11 +22,6 @@ const Lessons: React.FC<LessonProps> = ({ lessons }) => {
2322

2423
return (
2524
<>
26-
<Head>
27-
<title>D_D Academy</title>
28-
<meta name="description" content="Generated by create next app" />
29-
<link rel="icon" href="/favicon.ico" />
30-
</Head>
3125
<Flex as="main" py={5} px={[4, 10, 16]} direction="column" minH="90vh">
3226
<Stack spacing={5} direction="column">
3327
<>

0 commit comments

Comments
 (0)