Yuki Takei 4 лет назад
Родитель
Сommit
a47d17ca75

+ 1 - 1
packages/app/src/components/Navbar/GrowiSubNavigation.jsx

@@ -3,8 +3,8 @@ import PropTypes from 'prop-types';
 
 import { withTranslation } from 'react-i18next';
 
-import PagePathHierarchicalLink from '~/components/PagePathHierarchicalLink';
 import { DevidedPagePath } from '@growi/core';
+import PagePathHierarchicalLink from '~/components/PagePathHierarchicalLink';
 import LinkedPagePath from '~/models/linked-page-path';
 
 import { withUnstatedContainers } from '../UnstatedUtils';

+ 2 - 1
packages/core/src/utils/page-path-utils.ts

@@ -76,6 +76,7 @@ export const isCreatablePage = (path: string): boolean => {
  * return user path
  * @param user
  */
+// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
 export const userPageRoot = (user: any): string => {
   if (!user || !user.username) {
     return '';
@@ -116,7 +117,7 @@ export const encodeSpaces = (path?:string): string | undefined => {
  * @param {string} paths
  * @returns {string}
  */
-export const generateEditorPath = (...paths) => {
+export const generateEditorPath = (...paths: string[]): string => {
   const joinedPath = [...paths].join('/');
 
   if (!isCreatablePage(joinedPath)) {