|
|
@@ -5,7 +5,7 @@ import { format } from 'date-fns';
|
|
|
|
|
|
import { UserPicture, PageListMeta } from '@growi/ui';
|
|
|
import { DevidedPagePath } from '@growi/core';
|
|
|
-import { useIsDeviceSmallerThanLg, usePageDuplicateModalStatus } from '~/stores/ui';
|
|
|
+import { useIsDeviceSmallerThanLg } from '~/stores/ui';
|
|
|
import {
|
|
|
IPageInfoAll, IPageWithMeta, isIPageInfoForEntity, isIPageInfoForListing,
|
|
|
} from '~/interfaces/page';
|
|
|
@@ -34,7 +34,6 @@ export const PageListItemL = memo((props: Props): JSX.Element => {
|
|
|
} = props;
|
|
|
|
|
|
const { data: isDeviceSmallerThanLg } = useIsDeviceSmallerThanLg();
|
|
|
- const { open: openDuplicateModal } = usePageDuplicateModalStatus();
|
|
|
|
|
|
const elasticSearchResult = isIPageSearchMeta(pageMeta) ? pageMeta.elasticSearchResult : null;
|
|
|
const revisionShortBody = isIPageInfoForListing(pageMeta) ? pageMeta.revisionShortBody : null;
|
|
|
@@ -57,10 +56,6 @@ export const PageListItemL = memo((props: Props): JSX.Element => {
|
|
|
}
|
|
|
}, [isDeviceSmallerThanLg, onClickItem, pageData._id]);
|
|
|
|
|
|
- const onClickDuplicateMenuItem = () => {
|
|
|
- openDuplicateModal(pageData._id, pageData.path);
|
|
|
- };
|
|
|
-
|
|
|
const styleListGroupItem = (!isDeviceSmallerThanLg && onClickCheckbox != null) ? 'list-group-item-action' : '';
|
|
|
// background color of list item changes when class "active" exists under 'list-group-item'
|
|
|
const styleActive = !isDeviceSmallerThanLg && isSelected ? 'active' : '';
|
|
|
@@ -122,7 +117,6 @@ export const PageListItemL = memo((props: Props): JSX.Element => {
|
|
|
pageInfo={pageMeta}
|
|
|
onClickDeleteMenuItem={props.onClickDeleteButton}
|
|
|
isEnableActions={isEnableActions}
|
|
|
- onClickDuplicateMenuItem={onClickDuplicateMenuItem}
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|