refactor: update showProjectGallery state initialization and onClose handler for clarity
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import { Github, Linkedin, Mail, ChevronDown, Code, Database, BarChart3, Globe,
|
|||||||
const Portfolio = () => {
|
const Portfolio = () => {
|
||||||
const [activeSection, setActiveSection] = useState('home');
|
const [activeSection, setActiveSection] = useState('home');
|
||||||
const [scrolled, setScrolled] = useState(false);
|
const [scrolled, setScrolled] = useState(false);
|
||||||
const [showProjectGallery, setShowProjectGallery] = useState(false);
|
const [showProjectGallery, setShowProjectGallery] = useState<Project | null>(null);
|
||||||
|
|
||||||
// Nord Color Palette
|
// Nord Color Palette
|
||||||
const nordColors = {
|
const nordColors = {
|
||||||
@@ -657,7 +657,7 @@ const Portfolio = () => {
|
|||||||
{showProjectGallery && (
|
{showProjectGallery && (
|
||||||
<ProjectGallery
|
<ProjectGallery
|
||||||
project={showProjectGallery}
|
project={showProjectGallery}
|
||||||
onClose={() => setShowProjectGallery(false)}
|
onClose={() => setShowProjectGallery(null)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user