|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
|
|
|
import { IPageHasId } from '~/interfaces/page';
|
|
|
import { IUser } from '~/interfaces/user';
|
|
|
-import { useCurrentPagePath } from '~/stores/context';
|
|
|
import {
|
|
|
EditorMode, useEditorMode,
|
|
|
} from '~/stores/ui';
|
|
|
@@ -34,7 +33,6 @@ type Props = {
|
|
|
|
|
|
export const GrowiSubNavigation = (props: Props): JSX.Element => {
|
|
|
const { data: editorMode } = useEditorMode();
|
|
|
- const { data: currentPath } = useCurrentPagePath();
|
|
|
|
|
|
const {
|
|
|
page,
|
|
|
@@ -74,7 +72,7 @@ export const GrowiSubNavigation = (props: Props): JSX.Element => {
|
|
|
|
|
|
<div className="grw-path-nav-container">
|
|
|
{/* "/trash" page does not exist on page collection and unable to add tags */}
|
|
|
- { showTagLabel && !isCompactMode && currentPath !== '/trash' && (
|
|
|
+ { showTagLabel && !isCompactMode && path !== '/trash' && (
|
|
|
<div className="grw-taglabels-container">
|
|
|
<TagLabels tags={tags} isGuestUser={isGuestUser ?? false} tagsUpdateInvoked={tagsUpdatedHandler} />
|
|
|
</div>
|