Skip to content

Commit 81ed02d

Browse files
committed
fix homepage PTE not showing Overlay
1 parent 2a03d5c commit 81ed02d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

frontend/app/page.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import GetStartedCode from '@/app/components/GetStartedCode'
77
import SideBySideIcons from '@/app/components/SideBySideIcons'
88
import {settingsQuery} from '@/sanity/lib/queries'
99
import {sanityFetch} from '@/sanity/lib/live'
10+
import {dataAttr} from '@/sanity/lib/utils'
1011

1112
export default async function Page() {
1213
const {data: settings} = await sanityFetch({
@@ -47,7 +48,17 @@ export default async function Page() {
4748
<SideBySideIcons />
4849
<div className="container relative mx-auto max-w-2xl pb-20 pt-10 space-y-6 lg:max-w-4xl lg:px-12 flex flex-col items-center">
4950
<div className="prose sm:prose-lg md:prose-xl xl:prose-2xl text-gray-700 prose-a:text-gray-700 font-light text-center">
50-
{settings?.description && <PortableText value={settings.description} />}
51+
{settings?.description && (
52+
<div
53+
data-sanity={dataAttr({
54+
id: settings._id,
55+
type: 'settings',
56+
path: 'description',
57+
}).toString()}
58+
>
59+
<PortableText value={settings.description} />
60+
</div>
61+
)}
5162
<div className="flex items-center flex-col gap-4">
5263
<GetStartedCode />
5364
<Link

0 commit comments

Comments
 (0)