File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ const images = [
105105 } ,
106106] ;
107107
108-
109108export default function Gallery ( ) {
110109 const [ modalOpen , setModalOpen ] = useState ( false ) ;
111110 const [ selectedImageIndex , setSelectedImageIndex ] = useState ( null ) ;
@@ -124,14 +123,14 @@ export default function Gallery() {
124123 // Function to navigate to the previous image
125124 const goToPrevious = ( ) => {
126125 setSelectedImageIndex ( ( prevIndex ) =>
127- prevIndex === 0 ? images . length - 1 : prevIndex - 1
126+ prevIndex === 0 ? images . length - 1 : prevIndex - 1 ,
128127 ) ;
129128 } ;
130129
131130 // Function to navigate to the next image
132131 const goToNext = ( ) => {
133132 setSelectedImageIndex ( ( prevIndex ) =>
134- prevIndex === images . length - 1 ? 0 : prevIndex + 1
133+ prevIndex === images . length - 1 ? 0 : prevIndex + 1 ,
135134 ) ;
136135 } ;
137136
You can’t perform that action at this time.
0 commit comments