Browse Source

fix lint errors

Yuki Takei 5 months ago
parent
commit
945ca9fdb9

+ 1 - 1
packages/ui/src/components/Attachment.tsx

@@ -1,6 +1,6 @@
+import type { JSX } from 'react';
 import type { IAttachmentHasId } from '@growi/core';
 import { format } from 'date-fns/format';
-import type { JSX } from 'react';
 
 import { UserPicture } from './UserPicture';
 

+ 1 - 1
packages/ui/src/components/PagePath/PageListMeta.tsx

@@ -1,6 +1,6 @@
+import type { FC, JSX } from 'react';
 import type { IPageHasId } from '@growi/core';
 import { pagePathUtils, templateChecker } from '@growi/core/dist/utils';
-import type { FC, JSX } from 'react';
 
 const { isTopPage } = pagePathUtils;
 const { checkTemplatePath } = templateChecker;

+ 1 - 1
packages/ui/src/components/PagePath/PagePathLabel.tsx

@@ -1,5 +1,5 @@
-import { DevidedPagePath } from '@growi/core/dist/models';
 import type { FC, ReactNode } from 'react';
+import { DevidedPagePath } from '@growi/core/dist/models';
 
 type TextElemProps = {
   children?: ReactNode;

+ 4 - 4
packages/ui/src/components/UserPicture.tsx

@@ -1,7 +1,3 @@
-import type { IUser, Ref } from '@growi/core';
-import { pagePathUtils } from '@growi/core/dist/utils';
-import dynamic from 'next/dynamic';
-import { useRouter } from 'next/router';
 import {
   forwardRef,
   type JSX,
@@ -10,6 +6,10 @@ import {
   useCallback,
   useRef,
 } from 'react';
+import dynamic from 'next/dynamic';
+import { useRouter } from 'next/router';
+import type { IUser, Ref } from '@growi/core';
+import { pagePathUtils } from '@growi/core/dist/utils';
 import type { UncontrolledTooltipProps } from 'reactstrap';
 
 import styles from './UserPicture.module.scss';