Skip to content

Commit

Permalink
feat(admin): use flex-row and flex-wrap to render formacodes of certi…
Browse files Browse the repository at this point in the history
…fication
  • Loading branch information
fbonniec committed Nov 15, 2024
1 parent a14a438 commit aab5f5c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,16 @@ const PageContent = ({
{certification.domains.map((domain) => (
<div key={domain.id} className="flex flex-col gap-2">
<div>{domain.label}</div>
{domain.children.map((subDomain) => (
<Tag key={subDomain.id}>
{`${subDomain.code} ${subDomain.label}`}
</Tag>
))}
<div
key={domain.id}
className="flex flex-row flex-wrap gap-2"
>
{domain.children.map((subDomain) => (
<Tag key={subDomain.id}>
{`${subDomain.code} ${subDomain.label}`}
</Tag>
))}
</div>
</div>
))}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,16 @@ export default function CertificationDescriptionPage() {
{certification.DOMAINS.map((domain) => (
<div key={domain.id} className="flex flex-col gap-2">
<div>{domain.label}</div>
{domain.children.map((subDomain) => (
<Tag key={subDomain.id}>
{`${subDomain.code} ${subDomain.label}`}
</Tag>
))}
<div
key={domain.id}
className="flex flex-row flex-wrap gap-2"
>
{domain.children.map((subDomain) => (
<Tag key={subDomain.id}>
{`${subDomain.code} ${subDomain.label}`}
</Tag>
))}
</div>
</div>
))}
</div>
Expand Down

0 comments on commit aab5f5c

Please sign in to comment.