Remove disabled jsx-no-useless-fragment commit
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
@@ -10,23 +10,15 @@ interface CardsProps {
|
||||
cardOptions: CardOptions;
|
||||
}
|
||||
|
||||
const Cards: FC<CardsProps> = ({
|
||||
items = [],
|
||||
cardOptions
|
||||
}) => {
|
||||
const Cards: FC<CardsProps> = ({ items, cardOptions }) => {
|
||||
setCardData(items, cardOptions);
|
||||
return (
|
||||
// eslint-disable-next-line react/jsx-no-useless-fragment
|
||||
<>
|
||||
{items?.map((item) => (
|
||||
<Card
|
||||
key={item.Id}
|
||||
item ={item}
|
||||
cardOptions= {cardOptions}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
|
||||
const renderCards = () =>
|
||||
items.map((item) => (
|
||||
<Card key={item.Id} item={item} cardOptions={cardOptions} />
|
||||
));
|
||||
|
||||
return <>{renderCards()}</>;
|
||||
};
|
||||
|
||||
export default Cards;
|
||||
|
||||
Reference in New Issue
Block a user