Skip to content

Commit

Permalink
Add Header in 404Not Found component
Browse files Browse the repository at this point in the history
  • Loading branch information
dedaldino3d committed Nov 7, 2020
1 parent c28ab57 commit ab2870c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/components/404NotFound/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from "react";
import { Result, Button } from "antd";
import { useHistory } from "react-router-dom";

import Header from "../Header";

export const NotFound404 = () => {
const history = useHistory();

Expand All @@ -11,12 +13,15 @@ export const NotFound404 = () => {
};

return (
<Result
status="404"
title="404"
subTitle="Sorry, the page you visited does not exist."
extra={<Button onClick={handleBack}>Back Home</Button>}
/>
<>
<Header />
<Result
status="404"
title="404"
subTitle="Sorry, the page you visited does not exist."
extra={<Button onClick={handleBack}>Back Home</Button>}
/>
</>
);
};

Expand Down

0 comments on commit ab2870c

Please # to comment.