Skip to content

Commit

Permalink
chore: add items count
Browse files Browse the repository at this point in the history
  • Loading branch information
flops committed Nov 6, 2024
1 parent 4879184 commit 7a3905e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/DashKit/__stories__/DashKitGroupsShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ export const DashKitGroupsShowcase: React.FC = () => {
...chartGroups.map((id) => ({
id,
render: (id: string, children: React.ReactNode, props: DashkitGroupRenderProps) => {

Check warning on line 161 in src/components/DashKit/__stories__/DashKitGroupsShowcase.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

'id' is already declared in the upper scope on line 159 column 33
const showPlaceholder = props.items.length === 0 && !props.isDragging;
const itemsLength = props.items.length;
const showPlaceholder = itemsLength === 0 && !props.isDragging;

const isMultipleGroups = chartGroups.length > 1;
const groupIndex = chartGroups.indexOf(id);
Expand Down Expand Up @@ -195,7 +196,7 @@ export const DashKitGroupsShowcase: React.FC = () => {
<Icon
data={props.expanded ? ChevronUp : ChevronDown}
/>
{`Group: ${id}`}
{`${id}: (${itemsLength})`}
</Button>
</div>
<div className={b('collapse-group-header-controls')}>
Expand Down

0 comments on commit 7a3905e

Please sign in to comment.