Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
33e4c01670
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  1. 1 6
      packages/app/src/components/PagePathHierarchicalLink.tsx

+ 1 - 6
packages/app/src/components/PagePathHierarchicalLink.tsx

@@ -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">