added translaton to 404 page
This commit is contained in:
parent
b28264ba70
commit
56bf555bd7
1 changed files with 8 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
|||
import { useContext } from "react"
|
||||
import styled from "styled-components"
|
||||
import { Helmet } from "react-helmet-async"
|
||||
|
||||
import MainContent from "../components/MainContent"
|
||||
|
||||
import { globalContext } from "../globalContext"
|
||||
|
||||
const StyledNotFound = styled(MainContent)`
|
||||
text-align: center;
|
||||
`
|
||||
|
@ -12,6 +15,8 @@ const Styled404 = styled.h1`
|
|||
`
|
||||
|
||||
const NotFound = () => {
|
||||
const { globalState } = useContext(globalContext)
|
||||
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
|
@ -30,7 +35,9 @@ const NotFound = () => {
|
|||
<StyledNotFound>
|
||||
<Styled404>404</Styled404>
|
||||
<br />
|
||||
Page was not found :(
|
||||
{globalState.locale == "en"
|
||||
? "Page was not found :("
|
||||
: "페이지를 찾을 수 없습니다 :("}
|
||||
</StyledNotFound>
|
||||
</>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue