diff --git a/app/[slug]/page.tsx b/app/[slug]/page.tsx index 00bd750..5f518f7 100644 --- a/app/[slug]/page.tsx +++ b/app/[slug]/page.tsx @@ -1,12 +1,15 @@ /* Copyright (C) 2024 Manuel Bustillo*/ -'use client'; +'use client'; + import LoginForm from '@/app/ui/components/login-form'; import RegistrationForm from '@/app/ui/components/registration-form'; +import { useParams } from 'next/navigation' -export default async function Page({ params }: { params: Promise<{ slug: string }> }) { +export default async function Page() { + const params = useParams<{ slug: string }>() + localStorage.setItem('slug', await params.slug); - localStorage.setItem('slug', (await params).slug) return (