diff --git a/src/app/_components/about-me/page.tsx b/src/app/_components/about-me/page.tsx index e5d1f40..cd24525 100644 --- a/src/app/_components/about-me/page.tsx +++ b/src/app/_components/about-me/page.tsx @@ -33,9 +33,7 @@ export default function AboutMe() { const res = await fetch("/api/about-me"); if (res.ok) { const data = await res.json(); - // اطمینان از وجود skills - - setAboutMe(data); // بروزرسانی aboutMe با آرایه skills + setAboutMe(data); } else { console.error("Failed to fetch about me data"); } @@ -43,13 +41,9 @@ export default function AboutMe() { fetchAboutMeData() }, []); - // if (!aboutMe) { - // return ; // نمایش بارگذاری - // } - return (
{aboutMe?.image ? ( diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f645ea8..d92d2eb 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -38,7 +38,7 @@ export default function RootLayout({ >
logo -

+

Parsa Aghayi

@@ -85,7 +85,9 @@ export default function RootLayout({
-
{children}
+
+ {children} +