File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ const MinimalModernProjectPage = () => {
166166 < span className = "text-sm font-black uppercase tracking-widest" > { activeSection ?. id ?. toUpperCase ( ) } </ span >
167167 </ div >
168168 < div className = { `w-12 h-12 border-2 ${ themeClasses . border } flex items-center justify-center font-black` } >
169- { sections . findIndex ( s => s . id === activeSectionId ) + 1 }
169+ { activeSectionId ? sections . findIndex ( s => s . id === activeSectionId ) + 1 : '0' }
170170 </ div >
171171 </ div >
172172 </ div >
@@ -176,7 +176,7 @@ const MinimalModernProjectPage = () => {
176176 { sections . map ( ( section , idx ) => (
177177 < motion . div
178178 key = { section . id }
179- onMouseEnter = { ( ) => setActiveSectionId ( section . id ) }
179+ onClick = { ( ) => setActiveSectionId ( activeSectionId === section . id ? null : section . id ) }
180180 className = "group cursor-pointer relative"
181181 >
182182 < div className = "flex items-center gap-6" >
You can’t perform that action at this time.
0 commit comments