浏览代码

fix linter issue

Nail Badiullin 2 年之前
父节点
当前提交
3d35875bed
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      kafka-ui-react-app/src/components/common/NewTable/SizeCell.tsx

+ 5 - 1
kafka-ui-react-app/src/components/common/NewTable/SizeCell.tsx

@@ -3,7 +3,11 @@ import { CellContext } from '@tanstack/react-table';
 import BytesFormatted from 'components/common/BytesFormatted/BytesFormatted';
 import BytesFormatted from 'components/common/BytesFormatted/BytesFormatted';
 
 
 // eslint-disable-next-line @typescript-eslint/no-explicit-any
 // eslint-disable-next-line @typescript-eslint/no-explicit-any
-const SizeCell: React.FC<CellContext<any, unknown> & { renderSegments?: boolean }> = ({ getValue, row, renderSegments = false }) => (
+type AsAny = any;
+
+const SizeCell: React.FC<
+  CellContext<AsAny, unknown> & { renderSegments?: boolean }
+> = ({ getValue, row, renderSegments = false }) => (
   <>
   <>
     <BytesFormatted value={getValue<string | number>()} />
     <BytesFormatted value={getValue<string | number>()} />
     {renderSegments ? `, ${row?.original.count} segment(s)` : null}
     {renderSegments ? `, ${row?.original.count} segment(s)` : null}