Skip to content

Commit

Permalink
just one active element
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosammito committed Oct 6, 2024
1 parent b69b113 commit 8cfb8f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/d-screen/DScreen.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export const DashboardScreenExample = () => {
</DScreenButton>
</DScreenBar>
<div style={{padding: ".5rem"}}>
{[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(() => {
{[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map((_, index) => {
return <DFolder controls={controls} name={"Google Cloud Flows"} defaultOpen>
<DFolder controls={controls} name={"Google Cloud Flows"}>
<DFolder.Item icon={<IconBrandAdobe size={12}/>}
name={"Google Cloud Flows"}/>
<DFolder.Item active name={"Google Cloud Flows"}/>
<DFolder.Item active={index === 1} name={"Google Cloud Flows"}/>
</DFolder>
</DFolder>
})}
Expand Down

0 comments on commit 8cfb8f8

Please sign in to comment.