From 17c099fc3d88556f84fdac87e8c9026b1bb5b6a1 Mon Sep 17 00:00:00 2001 From: Jean Jacques Avril Date: Sun, 2 Mar 2025 21:49:10 +0000 Subject: [PATCH] fix --- src/app/(iframe)/iframe/page.tsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/app/(iframe)/iframe/page.tsx b/src/app/(iframe)/iframe/page.tsx index b1f3f45..c2886aa 100644 --- a/src/app/(iframe)/iframe/page.tsx +++ b/src/app/(iframe)/iframe/page.tsx @@ -1,14 +1,25 @@ 'use client'; -import { useState, useEffect } from 'react'; -import { useSearchParams, useRouter } from 'next/navigation'; import { EditableText } from '@/components/EditableText'; import { VoteOption, VoteOptionConfig } from '@/lib/survey'; +import { useSearchParams } from 'next/navigation'; +import { Suspense, useEffect, useState } from 'react'; // Special layout for iframe embedding - no header/footer export default function IframePage() { - const router = useRouter(); + return ( + }> + + + ); +} + +function LoadingComponent() { + return
Lädt...
; +} + +function IframePageContent() { const searchParams = useSearchParams(); const token = searchParams.get('token');