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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue