|
|
@@ -3,8 +3,6 @@ import React, { memo } from 'react';
|
|
|
import Link from 'next/link';
|
|
|
import urljoin from 'url-join';
|
|
|
|
|
|
-import { useIsTrashPage } from '~/stores/context';
|
|
|
-
|
|
|
import LinkedPagePath from '../models/linked-page-path';
|
|
|
|
|
|
|
|
|
@@ -23,16 +21,13 @@ const PagePathHierarchicalLink = memo((props: PagePathHierarchicalLinkProps): JS
|
|
|
const {
|
|
|
linkedPagePath, linkedPagePathByHtml, basePath, isInTrash,
|
|
|
} = props;
|
|
|
-
|
|
|
- const { data: isTrashPage } = useIsTrashPage();
|
|
|
-
|
|
|
// render root element
|
|
|
if (linkedPagePath.isRoot) {
|
|
|
if (basePath != null) {
|
|
|
return <></>;
|
|
|
}
|
|
|
|
|
|
- return isTrashPage || isInTrash
|
|
|
+ return isInTrash
|
|
|
? (
|
|
|
<>
|
|
|
<span className="path-segment">
|