diff --git a/app/@modal/(.)gallery/[...uuid]/page.tsx b/app/@modal/(.)gallery/[...uuid]/page.tsx index 72e9a461..e7fbf452 100644 --- a/app/@modal/(.)gallery/[...uuid]/page.tsx +++ b/app/@modal/(.)gallery/[...uuid]/page.tsx @@ -4,14 +4,14 @@ import Link from "@components/elements/link"; import {ParagraphStanfordGallery} from "@lib/gql/__generated__/drupal.d"; import {graphqlClient} from "@lib/gql/gql-client"; import {notFound} from "next/navigation"; -import {useId} from "react"; +import crypto from "crypto"; type Props = { params: { uuid: string[] } } const Page = async ({params: {uuid}}: Props) => { - const captionId = useId(); + const captionId = crypto.randomBytes(4).toString("hex") const [paragraphId, mediaUuid] = uuid const paragraphQuery = await graphqlClient().Paragraph({uuid: paragraphId}); diff --git a/src/components/algolia-search/algolia-search-form.tsx b/src/components/algolia-search/algolia-search-form.tsx index 9834d5ff..2f0fbc45 100644 --- a/src/components/algolia-search/algolia-search-form.tsx +++ b/src/components/algolia-search/algolia-search-form.tsx @@ -163,7 +163,7 @@ const Form = ({searchIndex}: { searchIndex: string }) => {
-