1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-14 23:20:51 -05:00

consistent arrow functions

This commit is contained in:
2025-03-12 18:10:11 -04:00
parent 6a57fde2f1
commit e61ca889a7
39 changed files with 121 additions and 126 deletions

View File

@@ -4,7 +4,7 @@ import { ThemeProvider } from "../contexts/ThemeContext";
import Header from "../components/Header";
import Footer from "../components/Footer";
import { SkipToContentLink, SkipToContentTarget } from "../components/SkipToContent";
import config from "../lib/config/constants";
import config from "../lib/config";
import type { Metadata } from "next";
import type { Person, WithContext } from "schema-dts";
@@ -37,9 +37,14 @@ export const metadata: Metadata = {
{
url: meJpg.src,
alt: `${config.siteName} ${config.shortDescription}`,
width: meJpg.width,
height: meJpg.height,
},
],
},
twitter: {
creator: `@${config.authorSocial?.twitter}`,
},
alternates: {
canonical: "/",
types: {
@@ -83,7 +88,7 @@ const jsonLd: WithContext<Person> = {
],
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
const RootLayout = ({ children }: { children: React.ReactNode }) => {
return (
<html lang={config.siteLocale} suppressHydrationWarning>
<head>
@@ -110,4 +115,6 @@ export default function RootLayout({ children }: { children: React.ReactNode })
</body>
</html>
);
}
};
export default RootLayout;