Skip to content

Commit

Permalink
prettier fi
Browse files Browse the repository at this point in the history
  • Loading branch information
vuolen committed Aug 12, 2024
1 parent 96ea858 commit 6809fbb
Show file tree
Hide file tree
Showing 9 changed files with 441 additions and 445 deletions.
11 changes: 7 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
"project": "./tsconfig.json"
},
"rules": {
"react/function-component-definition": [2, {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-props-no-spreading": [0]
}
}
2 changes: 1 addition & 1 deletion components/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const Carousel: React.FC<PropType> = (props) => {
<NextButton onClick={onNextButtonClick} disabled={nextBtnDisabled} />
</div>
<div className="embla__buttons">
{ /* eslint-disable-next-line jsx-a11y/anchor-is-valid -- Placeholder href */ }
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid -- Placeholder href */}
<Link href="" className="embla__link">
Katso Lisää
</Link>
Expand Down
2 changes: 1 addition & 1 deletion components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ const Navbar = ({ links }: NavbarProps) => {
</nav>
</div>
);
}
};

export default Navbar;
2 changes: 1 addition & 1 deletion components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ const Sidebar = ({ links }: NavbarProps) => {
</Snackbar>
</div>
);
}
};

export default Sidebar;
14 changes: 6 additions & 8 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import "@/styles/globals.css";
import type { AppProps } from "next/app";
import { LanguageProvider } from "@/lib/LanguageContext";

const App = ({ Component, pageProps }: AppProps) =>
(
<LanguageProvider>
<Component {...pageProps} />
</LanguageProvider>
);
const App = ({ Component, pageProps }: AppProps) => (
<LanguageProvider>
<Component {...pageProps} />
</LanguageProvider>
);


export default App;
export default App;
18 changes: 9 additions & 9 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Html, Head, Main, NextScript } from "next/document";

const Document = () => (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);

export default Document;
export default Document;
Loading

0 comments on commit 6809fbb

Please sign in to comment.