Merge pull request #54 from KieIO/m7-lytran2

M7 lytran2: Error page
This commit is contained in:
lytrankieio123 2021-09-14 16:56:57 +07:00 committed by GitHub
commit 87d6816e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
import { Layout } from 'src/components/common' import { Layout } from 'src/components/common'
import { ErrorPage } from 'src/components/modules/error-page' import { ErrorContent } from 'src/components/modules/error-page'
export default function NotFound() { export default function NotFound() {
return ( return (
<ErrorPage/> <ErrorContent/>
) )
} }
NotFound.Layout = Layout NotFound.Layout = Layout

View File

@ -1,12 +1,12 @@
import Link from 'next/link'; import Link from 'next/link';
import React from 'react'; import React from 'react';
import { ButtonCommon } from 'src/components/common'; import { ButtonCommon } from 'src/components/common';
import s from './ErrorPage.module.scss'; import s from './ErrorContent.module.scss';
interface Props { interface Props {
} }
const ErrorPage = ({ }: Props) => { const ErrorContent = ({ }: Props) => {
return ( return (
<div className={s.wrapper}> <div className={s.wrapper}>
@ -26,4 +26,4 @@ const ErrorPage = ({ }: Props) => {
) )
} }
export default ErrorPage export default ErrorContent

View File

@ -1 +1 @@
export {default as ErrorPage} from './ErrorPage/ErrorPage'; export {default as ErrorContent} from './ErrorContent/ErrorContent';

View File

@ -21,7 +21,7 @@ export const ROUTE = {
RECIPES: '/recipes', RECIPES: '/recipes',
RECIPE_DETAIL: '/recipe', RECIPE_DETAIL: '/recipe',
NOTIFICATION: '/notification', NOTIFICATION: '/notifications',
BUSSINESS: '/bussiness', BUSSINESS: '/bussiness',
CONTACT: '/contact', CONTACT: '/contact',
CHECKOUT: '/checkout', CHECKOUT: '/checkout',