1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove disabled jsx-no-useless-fragment commit

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
grafixeyehero 2024-03-01 21:15:52 +03:00
parent 90a1d06557
commit efe5d0b84d

View file

@ -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;