Skip to content

Commit 4dee1bd

Browse files
committed
refactor: address PR review feedback
- Add .claude/settings.local.json to .gitignore - Refactor EntryListing to use React.Fragment instead of array spread for better readability
1 parent 7909366 commit 4dee1bd

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ coverage/
2020
.temp/
2121
storybook-static/
2222
.nx
23+
.claude/settings.local.json

packages/decap-cms-core/src/components/Collection/Entries/EntryListing.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,15 @@ class EntryListing extends React.Component {
173173
);
174174
});
175175

176-
return [
177-
...publishedCards.toArray(),
178-
<SectionSeparator key="separator">
179-
<SectionHeading>{t('collection.entries.unpublishedHeader')}</SectionHeading>
180-
</SectionSeparator>,
181-
...unpublishedCards.toArray(),
182-
];
176+
return (
177+
<React.Fragment>
178+
{publishedCards}
179+
<SectionSeparator key="separator">
180+
<SectionHeading>{t('collection.entries.unpublishedHeader')}</SectionHeading>
181+
</SectionSeparator>
182+
{unpublishedCards}
183+
</React.Fragment>
184+
);
183185
};
184186

185187
renderCardsForMultipleCollections = () => {

0 commit comments

Comments
 (0)