Skip to content

Commit

Permalink
only showing links wrapper component if it equals or is smaller than …
Browse files Browse the repository at this point in the history
…default links shown (3)
  • Loading branch information
Barukimang committed Jan 9, 2024
1 parent a686d94 commit f08e527
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/@aragon/ods-old/components/headers/headerDao.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ export const HeaderDao: React.FC<HeaderDaoProps> = ({
</NetworkDetails>
</NetworkDetailsContainer>
<ActionWrapper>
<LinksWrapper>
{links
?.slice(0, DEFAULT_LINKS_SHOWN)
?.map(({label, href}, index: number) => (
{links?.length <= DEFAULT_LINKS_SHOWN && (
<LinksWrapper>
{links?.map(({label, href}, index) => (
<Link {...{label, href}} external key={index} />
))}
</LinksWrapper>
</LinksWrapper>
)}
<ActionContainer>
{showDropdown && (
<Dropdown
Expand Down

0 comments on commit f08e527

Please sign in to comment.