@hanzo/ui 0.5.20 → 0.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/next/root-layout.tsx +5 -3
- package/package.json +1 -1
package/next/root-layout.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import getAppRouterBodyFontClasses from './get-app-router-font-classes'
|
|
|
6
6
|
import { FacebookPixelHead, FacebookPixel } from './analytics/pixel-analytics'
|
|
7
7
|
import { GoogleAnalytics } from '@next/third-parties/google'
|
|
8
8
|
|
|
9
|
-
// Next 14: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#use-viewport-export
|
|
9
|
+
// Next 14: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#use-viewport-export
|
|
10
10
|
const viewport = {
|
|
11
11
|
themeColor: [
|
|
12
12
|
{ media: '(prefers-color-scheme: light)', color: 'white' },
|
|
@@ -27,7 +27,9 @@ const viewport = {
|
|
|
27
27
|
re body: overflow-y-hidden overflow-x-hidden, h-full
|
|
28
28
|
We cannot have these on body tag for scroll-snap to work on iOS!
|
|
29
29
|
*/
|
|
30
|
-
const bodyClasses =
|
|
30
|
+
const bodyClasses =
|
|
31
|
+
'bg-background text-foreground flex flex-col min-h-full ' +
|
|
32
|
+
getAppRouterBodyFontClasses()
|
|
31
33
|
|
|
32
34
|
const RootLayout: React.FC<PropsWithChildren & {
|
|
33
35
|
siteDef: SiteDef
|
|
@@ -45,7 +47,7 @@ const RootLayout: React.FC<PropsWithChildren & {
|
|
|
45
47
|
</head>
|
|
46
48
|
<body className={bodyClasses}>
|
|
47
49
|
<FacebookPixel />
|
|
48
|
-
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID} />
|
|
50
|
+
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID ?? ''} />
|
|
49
51
|
{header && <Header siteDef={siteDef}/>}
|
|
50
52
|
{children}
|
|
51
53
|
</body>
|
package/package.json
CHANGED