diff --git a/.env.local.example b/.env.local.example index 3b09280..3c27ffe 100644 --- a/.env.local.example +++ b/.env.local.example @@ -4,3 +4,5 @@ JWT_SCOPE="" GROUP_KEY="" BACKEND_URL="https://..." NEXT_PUBLIC_PLAUSIBLE_URL="" +NEXT_PUBLIC_RECAPTCHA_SITE_KEY="<>" +RECAPTCHA_SECRET="<>" diff --git a/src/app/actions.ts b/src/app/actions.ts index d554a73..a68e559 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -39,10 +39,12 @@ export async function sendQuestion({ question, slug, recaptchaToken, + userId, }: { question: string; slug: string; recaptchaToken: string; + userId: string; }) { const isRecaptchaValid = await validateRecaptcha(recaptchaToken); if (!isRecaptchaValid) { @@ -54,7 +56,7 @@ export async function sendQuestion({ } const res = await fetch(`https://konf-qna.kir-dev.hu/api/presentation/${slug}/question`, { method: 'POST', - body: JSON.stringify({ content: question, userId: 'zokni' }), + body: JSON.stringify({ content: question, userId }), }); if (res.status === 200) { return 201; diff --git a/src/app/questions/page.tsx b/src/app/questions/page.tsx index 5a7b9e0..90ee20f 100644 --- a/src/app/questions/page.tsx +++ b/src/app/questions/page.tsx @@ -1,26 +1,14 @@ -import { RoomQuestion } from '@/components/tiles/question-tile'; +import { QuestionPageBody } from '@/components/questions/question-page-body'; +import { getDelayData } from '@/models/get-delay-data'; import { getPresentationData } from '@/models/get-presentation-data'; export default async function questionsPage() { const presentations = await getPresentationData(); + const delay = await getDelayData(); return (

Kérdezz az elődóktól!

- -
-
-

IB028

-
-
-

IB025

-
-
- -
-
- -
-
+
); } diff --git a/src/components/navbar/desktop-navbar.tsx b/src/components/navbar/desktop-navbar.tsx index 5791dd7..3aeab29 100644 --- a/src/components/navbar/desktop-navbar.tsx +++ b/src/components/navbar/desktop-navbar.tsx @@ -25,7 +25,7 @@ export function DesktopNavbar() { }, []); return ( -