Yuki Takei 5 лет назад
Родитель
Сommit
5b558c482d

+ 3 - 3
src/client/js/components/Navbar/GrowiSubNavigation.jsx

@@ -22,7 +22,7 @@ import PageCreator from './PageCreator';
 import RevisionAuthor from './RevisionAuthor';
 
 // eslint-disable-next-line react/prop-types
-const RevisionPath = ({ pageId, pagePath, isPageForbidden }) => {
+const PagePathNav = ({ pageId, pagePath, isPageForbidden }) => {
 
   const dPagePath = new DevidedPagePath(pagePath, false, true);
 
@@ -71,7 +71,7 @@ const GrowiSubNavigation = (props) => {
   if (isPageNotFound || isPageForbidden) {
     return (
       <div className="px-3 py-3 grw-subnavbar">
-        <RevisionPath pageId={pageId} pagePath={path} isPageForbidden={isPageForbidden} />
+        <PagePathNav pageId={pageId} pagePath={path} isPageForbidden={isPageForbidden} />
       </div>
     );
   }
@@ -93,7 +93,7 @@ const GrowiSubNavigation = (props) => {
 
       {/* Page Path */}
       <div>
-        <RevisionPath pageId={pageId} pagePath={path} isPageForbidden={isPageForbidden} />
+        <PagePathNav pageId={pageId} pagePath={path} isPageForbidden={isPageForbidden} />
         { !isPageNotFound && !isPageForbidden && (
           <TagLabels />
         ) }

+ 2 - 2
src/client/js/components/Navbar/GrowiSubNavigationForUserPage.jsx

@@ -15,7 +15,7 @@ import BookmarkButton from '../BookmarkButton';
 import UserPicture from '../User/UserPicture';
 
 // eslint-disable-next-line react/prop-types
-const RevisionPath = ({ pageId, pagePath }) => {
+const PagePathNav = ({ pageId, pagePath }) => {
   const linkedPagePath = new LinkedPagePath(pagePath);
   const latterLink = <PagePathHierarchicalLink linkedPagePath={linkedPagePath} />;
 
@@ -54,7 +54,7 @@ const GrowiSubNavigationForUserPage = (props) => {
 
   return (
     <div className={`px-3 ${additionalClassNames.join(' ')}`}>
-      <RevisionPath pageId={pageId} pagePath={path} />
+      <PagePathNav pageId={pageId} pagePath={path} />
 
       <div className="d-flex align-items-center justify-content-between">