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; cardOptions: CardOptions;
} }
const Cards: FC<CardsProps> = ({ const Cards: FC<CardsProps> = ({ items, cardOptions }) => {
items = [],
cardOptions
}) => {
setCardData(items, cardOptions); setCardData(items, cardOptions);
return (
// eslint-disable-next-line react/jsx-no-useless-fragment const renderCards = () =>
<> items.map((item) => (
{items?.map((item) => ( <Card key={item.Id} item={item} cardOptions={cardOptions} />
<Card ));
key={item.Id}
item ={item} return <>{renderCards()}</>;
cardOptions= {cardOptions}
/>
))}
</>
);
}; };
export default Cards; export default Cards;