Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interface/next-seo.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DefaultSeoProps } from "next-seo";
import type { DefaultSeoProps } from "next-seo/pages";
import { SITE_DESCRIPTION, SITE_IMAGE, SITE_NAME } from "@/lib/constants";

const config: DefaultSeoProps = {
Expand Down
16 changes: 8 additions & 8 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@headlessui/react": "^2.2.9",
"@heroicons/react": "^2.2.0",
"next": "^15.5.6",
"next": "^16.0.0",
"next-themes": "^0.4.6",
"prismjs": "^1.30.0",
"react": "^19.2.0",
Expand All @@ -41,23 +41,23 @@
},
"devDependencies": {
"@eslint/js": "^9.38.0",
"@next/eslint-plugin-next": "^15.5.6",
"@tailwindcss/postcss": "^4.1.14",
"@next/eslint-plugin-next": "^16.0.0",
"@tailwindcss/postcss": "^4.1.15",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "^24.8.1",
"@types/node": "^24.9.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"autoprefixer": "^10.4.21",
"eslint": "^9.38.0",
"eslint-config-next": "^15.5.6",
"eslint-config-next": "^16.0.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.0",
"next-seo": "^6.8.0",
"next-seo": "^7.0.1",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.7.1",
"tailwindcss": "^4.1.14",
"tailwindcss": "^4.1.15",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.1"
"typescript-eslint": "^8.46.2"
}
}
14 changes: 8 additions & 6 deletions interface/src/components/layout/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import NextHead from "next/head";
import { generateNextSeo } from "next-seo/pages";
import { SITE_DESCRIPTION, SITE_NAME } from "@/lib/constants";

interface Props {
title?: string;
description?: string;
}

export const Head = (props: Props) => {
export const Head = ({ title, description }: Props) => {
const seoProps = {
title: title ? `${title} | ${SITE_NAME}` : SITE_NAME,
description: description ?? SITE_DESCRIPTION,
};

return (
<NextHead>
<title>{props.title ? `${props.title} | ${SITE_NAME}` : SITE_NAME}</title>
<meta
name="description"
content={props.description ?? SITE_DESCRIPTION}
/>
{generateNextSeo(seoProps)}
<meta name="viewport" content="width=device-width, initial-scale=1" />
</NextHead>
);
Expand Down
9 changes: 4 additions & 5 deletions interface/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from "react";
import type { AppProps } from "next/app";
import { DefaultSeo } from "next-seo";
import Head from "next/head";
import { generateDefaultSeo } from "next-seo/pages";
import { ThemeProvider } from "next-themes";
import { Layout } from "@/components/layout/Layout";
import "@/styles/globals.css";
Expand All @@ -11,12 +12,10 @@ function App({ Component, pageProps }: AppProps) {
React.useEffect(() => setMounted(true), []);
return (
<ThemeProvider attribute="class">
<DefaultSeo {...DefaultSeoProps} />
<Head>{generateDefaultSeo(DefaultSeoProps)}</Head>
{mounted && (
<Layout>
<>
<Component {...pageProps} />
</>
<Component {...pageProps} />
</Layout>
)}
</ThemeProvider>
Expand Down
2 changes: 1 addition & 1 deletion interface/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"noEmit": true,
"moduleResolution": "bundler",
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"author": "pcaversaccio (https://pcaversaccio.com), Matt Solomon (https://mattsolomon.dev)",
"license": "AGPL-3.0-only",
"packageManager": "pnpm@10.18.3",
"packageManager": "pnpm@10.19.0",
"scripts": {
"clean": "npx hardhat clean && forge clean",
"test": "forge test --out forge-artifacts",
Expand Down Expand Up @@ -254,6 +254,6 @@
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.1"
"typescript-eslint": "^8.46.2"
}
}
Loading
Loading