Skip to content

Commit 1a35a38

Browse files
authored
Merge pull request #10318 from ethereum/migrate-404-page
Migrate `404.tsx` page to Chakra UI
2 parents a35c721 + e9d42ad commit 1a35a38

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/pages/404.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
import React from "react"
2-
import styled from "@emotion/styled"
32
import { graphql, PageProps } from "gatsby"
3+
import { Box, Flex } from "@chakra-ui/react"
44

55
import Link from "../components/Link"
66
import Translation from "../components/Translation"
77

8-
import { Page, Content } from "../components/SharedStyledComponents"
9-
10-
const StyledPage = styled(Page)`
11-
margin-top: 4rem;
12-
`
13-
148
const NotFoundPage = (props: PageProps) => (
15-
<StyledPage>
16-
<Content>
9+
<Flex flexDir="column" align="center" w="full" mt={16} mb={0} mx="auto">
10+
<Box py={4} px={8} w="full">
1711
<h1>
1812
<Translation id="we-couldnt-find-that-page" />
1913
</h1>
@@ -24,8 +18,8 @@ const NotFoundPage = (props: PageProps) => (
2418
</Link>
2519
.
2620
</p>
27-
</Content>
28-
</StyledPage>
21+
</Box>
22+
</Flex>
2923
)
3024

3125
export default NotFoundPage

0 commit comments

Comments
 (0)