From ec66ad6b53330c19399532268b8a65cc3e3ba240 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 26 Jun 2022 17:27:59 -0700 Subject: Ignore lint for shimmer --- modern/src/common/components/TableShimmer.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modern/src/common') diff --git a/modern/src/common/components/TableShimmer.js b/modern/src/common/components/TableShimmer.js index e7d12f95..3bccb22c 100644 --- a/modern/src/common/components/TableShimmer.js +++ b/modern/src/common/components/TableShimmer.js @@ -1,12 +1,13 @@ import React from 'react'; import { Skeleton, TableCell, TableRow } from '@mui/material'; -const TableShimmer = ({ columns, startAction, endAction }) => [...Array(3)].map(() => ( - - {[...Array(columns)].map((_, i) => { - const action = (startAction && i === 0) || (endAction && i === columns - 1); +/* eslint-disable react/no-array-index-key */ +const TableShimmer = ({ columns, startAction, endAction }) => [...Array(3)].map((_, i) => ( + + {[...Array(columns)].map((_, j) => { + const action = (startAction && j === 0) || (endAction && j === columns - 1); return ( - + {!action && } ); -- cgit v1.2.3