Skip to content

Commit 67cbd8b

Browse files
committed
Include missing scripts and fix Card prop
1 parent fa18d3a commit 67cbd8b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import LogoIcon from "@/components/icons/logo-icon.svg";
88
import BannerContents from "@/components/banner";
99
import Providers from "@/components/providers";
1010
import { TocCTA } from "@/components/cta";
11+
import Scripts from "@/components/scripts";
1112
import type { Metadata, ResolvingMetadata } from "next";
1213
import { SpeedInsights } from "@vercel/speed-insights/next";
1314
import "./globals.css";
@@ -101,6 +102,7 @@ export default async function RootLayout({ children }) {
101102
<OurLayout>
102103
<SpeedInsights />
103104
<Providers>{children}</Providers>
105+
<Scripts />
104106
</OurLayout>
105107
</Layout>
106108
</body>

app/page.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { Cards } from "nextra/components";
88

99
<Cards num={2}>
1010
<Cards.Card
11-
image
1211
arrow
1312
title="View"
1413
href="/spicedb/getting-started/discovering-spicedb"
@@ -17,7 +16,7 @@ import { Cards } from "nextra/components";
1716
<h3>SpiceDB Documentation</h3>
1817
</div>
1918
</Cards.Card>
20-
<Cards.Card image arrow title="View" href="/authzed/guides/picking-a-product">
19+
<Cards.Card arrow title="View" href="/authzed/guides/picking-a-product">
2120
<div className="p-4">
2221
<h3>AuthZed Products Documentation</h3>
2322
</div>

components/scripts.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { usePathname, useSearchParams } from "next/navigation";
55
import { Router } from "next/router";
66
import Script from "next/script";
77
import posthog from "posthog-js";
8-
import { useEffect, useState } from "react";
8+
import { Suspense, useEffect, useState } from "react";
99

1010
const isProd = process.env.NEXT_PUBLIC_VERCEL_ENV === "production";
1111
const baseDir = process.env.NEXT_PUBLIC_BASE_DIR || "";
@@ -112,10 +112,10 @@ function Posthog() {
112112

113113
export default function Scripts() {
114114
return (
115-
<div>
115+
<Suspense fallback={<></>}>
116116
<Reo />
117117
<HubSpot />
118118
<Posthog />
119-
</div>
119+
</Suspense>
120120
);
121121
}

0 commit comments

Comments
 (0)