You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in the Winners Photo Carousel on the Gallery page, all of the photos are imported statically. I believe it should be possible to use the year prop that is passed to the component to dynamically import the images inside the Gallery/PhotoCarousel function. This would make the Carousel easier to update in future years, as it would not require static imports of every winners image, and it would make the file less cluttered.
As a starting point, refer to the dynamic import of the Winner's project image in the Winner.jsx file.
The text was updated successfully, but these errors were encountered:
Currently, in the Winners Photo Carousel on the Gallery page, all of the photos are imported statically. I believe it should be possible to use the year prop that is passed to the component to dynamically import the images inside the Gallery/PhotoCarousel function. This would make the Carousel easier to update in future years, as it would not require static imports of every winners image, and it would make the file less cluttered.
As a starting point, refer to the dynamic import of the Winner's project image in the Winner.jsx file.
The text was updated successfully, but these errors were encountered: