|
|
@@ -1,14 +1,14 @@
|
|
|
import React, { useMemo } from 'react';
|
|
|
-import PropTypes from 'prop-types';
|
|
|
-import { withTranslation } from 'react-i18next';
|
|
|
+import { useTranslation } from 'react-i18next';
|
|
|
+
|
|
|
import PageListIcon from './Icons/PageListIcon';
|
|
|
import TimeLineIcon from './Icons/TimeLineIcon';
|
|
|
import CustomNavAndContents from './CustomNavigation/CustomNavAndContents';
|
|
|
import PageList from './PageList';
|
|
|
import PageTimeline from './PageTimeline';
|
|
|
|
|
|
-const NotFoundPage = (props) => {
|
|
|
- const { t } = props;
|
|
|
+const NotFoundPage = (): JSX.Element => {
|
|
|
+ const { t } = useTranslation();
|
|
|
|
|
|
const navTabMapping = useMemo(() => {
|
|
|
return {
|
|
|
@@ -35,8 +35,4 @@ const NotFoundPage = (props) => {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
-NotFoundPage.propTypes = {
|
|
|
- t: PropTypes.func.isRequired, // i18next
|
|
|
-};
|
|
|
-
|
|
|
-export default withTranslation()(NotFoundPage);
|
|
|
+export default NotFoundPage;
|