-
${p.prices.price.value}
+
+
+ {p.name}
+
${p.prices.price.value}
diff --git a/components/ui/context.tsx b/components/ui/context.tsx
index 40ac823b1..90fe8de94 100644
--- a/components/ui/context.tsx
+++ b/components/ui/context.tsx
@@ -1,4 +1,6 @@
import React, { FC } from 'react'
+import { ThemeProvider } from 'next-themes'
+import { SSRProvider, OverlayProvider } from 'react-aria'
export interface State {
displaySidebar: boolean
@@ -63,3 +65,13 @@ function uiReducer(state: State, action: Action) {
}
}
}
+
+export const ManagedUIContext: FC = ({ children }) => (
+
+
+
+ {children}
+
+
+
+)
diff --git a/config.json b/config.json
deleted file mode 100644
index 6c279ee04..000000000
--- a/config.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "seo": {
- "title": "ACME Storefront | Powered by Next.js Commerce",
- "titleTemplate": "%s - ACME Storefront",
- "description": "Next.js Commerce -> https://www.nextjs.org/commerce",
- "openGraph": {
- "type": "website",
- "locale": "en_IE",
- "url": "https://nextjs.org/commerce",
- "site_name": "Next.js Commerce"
- },
- "twitter": {
- "handle": "@nextjs",
- "site": "@nextjs",
- "cardType": "summary_large_image"
- }
- }
-}
diff --git a/config/seo.json b/config/seo.json
new file mode 100644
index 000000000..0d0c3d37d
--- /dev/null
+++ b/config/seo.json
@@ -0,0 +1,16 @@
+{
+ "title": "ACME Storefront | Powered by Next.js Commerce",
+ "titleTemplate": "%s - ACME Storefront",
+ "description": "Next.js Commerce -> https://www.nextjs.org/commerce",
+ "openGraph": {
+ "type": "website",
+ "locale": "en_IE",
+ "url": "https://nextjs.org/commerce",
+ "site_name": "Next.js Commerce"
+ },
+ "twitter": {
+ "handle": "@nextjs",
+ "site": "@nextjs",
+ "cardType": "summary_large_image"
+ }
+}
diff --git a/pages/_app.tsx b/pages/_app.tsx
index dfa00b6aa..8b95bcf40 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -3,11 +3,10 @@ import '@assets/tailwind.css'
import '@assets/utils.css'
import 'animate.css'
import { FC } from 'react'
-import { DefaultSeo } from 'next-seo'
import type { AppProps } from 'next/app'
-import Head from 'next/head'
-import config from '../config.json'
+import { ManagedUIContext } from '@components/ui/context'
+import { Head } from '@components/core'
const Noop: FC = ({ children }) => <>{children}>
@@ -16,14 +15,12 @@ export default function MyApp({ Component, pageProps }: AppProps) {
return (
<>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
>
)
}
diff --git a/tsconfig.json b/tsconfig.json
index 4760611cc..e6b6b9c9c 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -18,7 +18,8 @@
"@lib/*": ["lib/*"],
"@assets/*": ["assets/*"],
"@components/*": ["components/*"],
- "@utils/*": ["utils/*"]
+ "@utils/*": ["utils/*"],
+ "@config/*": ["config/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],