Browse Source

fix linter issue

Nail Badiullin 2 years ago
parent
commit
3d35875bed
1 changed files with 5 additions and 1 deletions
  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';
 
 // 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>()} />
     {renderSegments ? `, ${row?.original.count} segment(s)` : null}