added 404 image
This commit is contained in:
1 parent
29b790a8e2
commit
32a94f04cc
2 files changed
+1739
-1
No files matched your search
@@ -4,6 +4,7 @@ import React from "react";
|
|||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import { Stack, Typography } from "@mui/material";
|
import { Stack, Typography } from "@mui/material";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
|
import NotFoundSvg from "../../../src/assets/Images/sushi_404.svg";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Support for defaultProps will be removed from function components in a future major release
|
* Support for defaultProps will be removed from function components in a future major release
|
||||||
@@ -32,12 +33,14 @@ const DefaultValue = {
|
|||||||
*/
|
*/
|
||||||
const NotFound = ({ title = DefaultValue.title, desc = DefaultValue.desc }) => {
|
const NotFound = ({ title = DefaultValue.title, desc = DefaultValue.desc }) => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
console.log("NOT FOUND");
|
||||||
return (
|
return (
|
||||||
<Stack className="not-found-page" justifyContent="center">
|
<Stack className="not-found-page" justifyContent="center">
|
||||||
<Stack gap="20px" alignItems="center">
|
<Stack gap="20px" alignItems="center">
|
||||||
<Typography component="h1">{title}</Typography>
|
<Typography component="h1">{title}</Typography>
|
||||||
<Typography>{desc}</Typography>
|
<Typography>{desc}</Typography>
|
||||||
|
<img src={NotFoundSvg} alt="404" style={{ maxHeight: "25rem" }} />
|
||||||
|
<Typography>Oh no! You dropped your sushi!</Typography>
|
||||||
<Button
|
<Button
|
||||||
label="Go to the main dashboard"
|
label="Go to the main dashboard"
|
||||||
level="primary"
|
level="primary"
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
|
After Width: | Height: | Size: 536 KiB |
Reference in new issue
Block a user