fix
This commit is contained in:
parent
2561446907
commit
17c099fc3d
@ -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 (
|
||||
<Suspense fallback={<LoadingComponent />}>
|
||||
<IframePageContent />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
function LoadingComponent() {
|
||||
return <div>Lädt...</div>;
|
||||
}
|
||||
|
||||
function IframePageContent() {
|
||||
const searchParams = useSearchParams();
|
||||
const token = searchParams.get('token');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user