Skip to content

Commit

Permalink
chore(project): types, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Lillebo committed Oct 3, 2024
1 parent 8952c71 commit 93ac745
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
4 changes: 2 additions & 2 deletions apps/docs/src/app/components/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const NestedList = ({ items, locale, pathname }: NestedListProps) => {
) : (
<a
href={itemPathWithLocale}
aria-expanded={hasChildren ? isOpen : undefined }
aria-expanded={hasChildren ? isOpen : undefined}
id={item.path}
>
{item.title}
Expand All @@ -122,7 +122,7 @@ const NestedList = ({ items, locale, pathname }: NestedListProps) => {
</div>
{isOpen && hasChildren && (
<NestedList
items={item.children}
items={item.children as SidebarItemObject[]}
locale={locale}
pathname={pathname}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/forms/app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import RootLayout, { generateStaticParams } from '@fdk-frontend/ui/layout-root';

const FormsLayout = (props: any) => (<RootLayout {...props} />);
const FormsLayout = (props: any) => <RootLayout {...props} />;

export default FormsLayout;
export { generateStaticParams };
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
a {
width: 100%;
text-decoration: none;

// &:focus-visible {
// @include fds-focus-visible-block();
// color:inherit !important;
// }
}
}

Expand Down
5 changes: 4 additions & 1 deletion libs/ui/src/lib/catalogs-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const CatalogsMenu = ({ dictionary, baseUri, locale }: CatalogsMenuProps) => {
const data = getMainMenuData(dictionary, `${baseUri}/${locale}`);

return (
<nav className={styles.catalogsMenu} aria-label={dictionary.mainMenu.catalogs.label}>
<nav
className={styles.catalogsMenu}
aria-label={dictionary.mainMenu.catalogs.label}
>
<ul>
{data.catalogs.map((item: any, i: number) => (
<li key={item.key}>
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/footer/footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
&:hover {
color: white;
background: var(--color-fdk-navy);

svg {
fill: white;
}
Expand Down
1 change: 0 additions & 1 deletion libs/ui/src/lib/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Link } from '@digdir/designsystemet-react';
import { Dictionary } from '@fdk-frontend/dictionaries';

import { LogoLink, DigdirLogoLink } from '../logo';
Expand Down
16 changes: 8 additions & 8 deletions libs/ui/src/lib/main-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ const MainMenu = ({ className, dictionary, baseUri }: MainMenuProps) => {
<motion.nav
className={styles.linkSection}
variants={animations.section}
aria-labelledby="mainMenu.catalogs.heading"
aria-labelledby='mainMenu.catalogs.heading'
>
<Heading
className={styles.linkSectionHeader}
level={3}
size='sm'
id="mainMenu.catalogs.heading"
id='mainMenu.catalogs.heading'
>
{dictionary.mainMenu.catalogs.heading}
</Heading>
Expand All @@ -75,13 +75,13 @@ const MainMenu = ({ className, dictionary, baseUri }: MainMenuProps) => {
<motion.nav
className={styles.linkSection}
variants={animations.section}
aria-labelledby="mainMenu.help.heading"
aria-labelledby='mainMenu.help.heading'
>
<Heading
className={styles.linkSectionHeader}
level={3}
size='sm'
id="mainMenu.help.heading"
id='mainMenu.help.heading'
>
{dictionary.mainMenu.help.heading}
</Heading>
Expand All @@ -99,13 +99,13 @@ const MainMenu = ({ className, dictionary, baseUri }: MainMenuProps) => {
<motion.nav
className={styles.linkSection}
variants={animations.section}
aria-labelledby="mainMenu.tools.heading"
aria-labelledby='mainMenu.tools.heading'
>
<Heading
className={styles.linkSectionHeader}
level={3}
size='sm'
id="mainMenu.tools.heading"
id='mainMenu.tools.heading'
>
{dictionary.mainMenu.tools.heading}
</Heading>
Expand All @@ -120,13 +120,13 @@ const MainMenu = ({ className, dictionary, baseUri }: MainMenuProps) => {
<motion.nav
className={styles.linkSection}
variants={animations.section}
aria-labelledby="mainMenu.about.heading"
aria-labelledby='mainMenu.about.heading'
>
<Heading
className={styles.linkSectionHeader}
level={3}
size='sm'
id="mainMenu.about.heading"
id='mainMenu.about.heading'
>
{dictionary.mainMenu.about.heading}
</Heading>
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/main-menu/main-menu.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

&:focus-visible {
@include fds-focus-visible-block();
color:black;
color: black;

svg {
fill: black;
Expand Down

0 comments on commit 93ac745

Please sign in to comment.