|
@@ -1,4 +1,4 @@
|
|
|
-import React from 'react';
|
|
|
|
|
|
|
+import React, { useMemo } from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
import PropTypes from 'prop-types';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
import { withTranslation } from 'react-i18next';
|
|
|
import PageListIcon from './Icons/PageListIcon';
|
|
import PageListIcon from './Icons/PageListIcon';
|
|
@@ -9,14 +9,16 @@ import PageList from './PageList';
|
|
|
const TrashPageList = (props) => {
|
|
const TrashPageList = (props) => {
|
|
|
const { t } = props;
|
|
const { t } = props;
|
|
|
|
|
|
|
|
- const navTabMapping = {
|
|
|
|
|
- pagelist: {
|
|
|
|
|
- Icon: PageListIcon,
|
|
|
|
|
- Content: PageList,
|
|
|
|
|
- i18n: t('page_list'),
|
|
|
|
|
- index: 0,
|
|
|
|
|
- },
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ const navTabMapping = useMemo(() => {
|
|
|
|
|
+ return {
|
|
|
|
|
+ pagelist: {
|
|
|
|
|
+ Icon: PageListIcon,
|
|
|
|
|
+ Content: PageList,
|
|
|
|
|
+ i18n: t('page_list'),
|
|
|
|
|
+ index: 0,
|
|
|
|
|
+ },
|
|
|
|
|
+ };
|
|
|
|
|
+ }, [t]);
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="mt-5 d-edit-none">
|
|
<div className="mt-5 d-edit-none">
|