Skip to content

Commit

Permalink
style: change to arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
destyk committed May 14, 2024
1 parent 4279f30 commit 6f5d269
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ type AppPropsWithLayout = AppProps & {
Component: NextPageWithLayout;
};

export default function App({ Component, pageProps }: AppPropsWithLayout) {
const App = ({ Component, pageProps }: AppPropsWithLayout) => {
return (
<Wrapper>
<Component {...pageProps} />
</Wrapper>
);
}
};

export default App;
6 changes: 4 additions & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Html, Head, Main, NextScript } from 'next/document';

export default function Document() {
const Document = () => {
return (
<Html lang="en" className="h-100" data-bs-theme="dark">
<Head>
Expand All @@ -23,4 +23,6 @@ export default function Document() {
</body>
</Html>
);
}
};

export default Document;

0 comments on commit 6f5d269

Please sign in to comment.