memos/web/src/pages/NotFound.tsx
Xi 28405f6d24
feat: not found page (#1081)
* feat: style for not found page (#1078)

* chore: translation for not found page (#1078)

* feat: add not found page (#1078)

* chore: router for not found page (#1078)

* fix: typo
2023-02-13 23:28:46 +08:00

22 lines
589 B
TypeScript

import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import "../less/not-found.less";
const NotFound = () => {
const { t } = useTranslation();
return (
<div className="page-wrapper not-found">
<div className="page-container">
<p className="title-text">{t("message.page-not-found")}</p>
<div className="action-button-container">
<Link to="/" className="link-btn">
<span>🏠</span> {t("common.back-to-home")}
</Link>
</div>
</div>
</div>
);
};
export default NotFound;