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:
parent
90a1d06557
commit
efe5d0b84d
1 changed files with 8 additions and 16 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue