diff --git a/src/app/[locale]/(dashboard)/dashboard/page.tsx b/src/app/[locale]/(dashboard)/dashboard/page.tsx index 57fa9f3..76ebf3b 100644 --- a/src/app/[locale]/(dashboard)/dashboard/page.tsx +++ b/src/app/[locale]/(dashboard)/dashboard/page.tsx @@ -1,5 +1,6 @@ "use client"; +import { useState, useEffect } from "react"; import { motion } from "framer-motion"; import { FolderOpen, @@ -95,6 +96,12 @@ function getStatCards(data?: typeof MOCK_STATS, creditBalance?: { balance: numbe } export default function DashboardPage() { + const [mounted, setMounted] = useState(false); + + useEffect(() => { + setMounted(true); + }, []); + // Real API hook'ları — mock modunda çağrılmaz const statsQuery = useDashboardStats(); const creditQuery = useCreditBalance(); @@ -106,6 +113,14 @@ export default function DashboardPage() { const statCards = getStatCards(statsData, creditData); + if (!mounted) { + return ( +
{error.message}
+ {error.stack}
+ + İstediğiniz konuyu, bir hikayeyi veya makaleyi kopyalayıp yapıştırın; yapay zeka sizin için detaylı bir video senaryosu üretsin. +
+