Skip to content

Commit

Permalink
errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Oct 8, 2024
1 parent 584d60e commit 413ede6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
40 changes: 22 additions & 18 deletions apps/storefront/components/Tokens/TokenList/TokenList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,18 +225,20 @@ const TokenList = ({
Brand: {capitalizeString(brand)}
</Dropdown.Trigger>
<Dropdown>
<Dropdown.Item onClick={() => setBrand('digdir')}>
Digdir
</Dropdown.Item>
<Dropdown.Item onClick={() => setBrand('altinn')}>
Altinn
</Dropdown.Item>
<Dropdown.Item onClick={() => setBrand('tilsynet')}>
Tilsynet
</Dropdown.Item>
<Dropdown.Item onClick={() => setBrand('portal')}>
Brreg
</Dropdown.Item>
<Dropdown.List>
<Dropdown.Item onClick={() => setBrand('digdir')}>
Digdir
</Dropdown.Item>
<Dropdown.Item onClick={() => setBrand('altinn')}>
Altinn
</Dropdown.Item>
<Dropdown.Item onClick={() => setBrand('tilsynet')}>
Tilsynet
</Dropdown.Item>
<Dropdown.Item onClick={() => setBrand('portal')}>
Brreg
</Dropdown.Item>
</Dropdown.List>
</Dropdown>
</Dropdown.Context>
)}
Expand All @@ -246,12 +248,14 @@ const TokenList = ({
Mode: {capitalizeString(mode)}
</Dropdown.Trigger>
<Dropdown>
<Dropdown.Item onClick={() => setMode('light')}>
Light
</Dropdown.Item>
<Dropdown.Item onClick={() => setMode('dark')}>
Dark
</Dropdown.Item>
<Dropdown.List>
<Dropdown.Item onClick={() => setMode('light')}>
Light
</Dropdown.Item>
<Dropdown.Item onClick={() => setMode('dark')}>
Dark
</Dropdown.Item>
</Dropdown.List>
</Dropdown>
</Dropdown.Context>
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/layouts/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PageLayout = ({ content, data }: PageLayoutProps) => {
</Link>
<Paragraph size='lg' variant='short' asChild>
<div className={classes.meta}>
<span>{data.author && <div>{data.author}</div>}</span>
<span>{data.author && <span>{data.author}</span>}</span>
<span className={classes.separator}> - </span>
<span>{data.date && <div>{data.date}</div>}</span>
</div>
Expand Down

0 comments on commit 413ede6

Please sign in to comment.