From 5d93919fb261f10f725b07d140ea66700146cd97 Mon Sep 17 00:00:00 2001 From: Quinta <0pietroquintavalle0@gmail.com> Date: Thu, 26 Jun 2025 17:08:03 +0200 Subject: [PATCH] refactor: update showProjectGallery state initialization and onClose handler for clarity --- app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 6ac80dc..85e3283 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -5,7 +5,7 @@ import { Github, Linkedin, Mail, ChevronDown, Code, Database, BarChart3, Globe, const Portfolio = () => { const [activeSection, setActiveSection] = useState('home'); const [scrolled, setScrolled] = useState(false); - const [showProjectGallery, setShowProjectGallery] = useState(false); + const [showProjectGallery, setShowProjectGallery] = useState(null); // Nord Color Palette const nordColors = { @@ -657,7 +657,7 @@ const Portfolio = () => { {showProjectGallery && ( setShowProjectGallery(false)} + onClose={() => setShowProjectGallery(null)} /> )}