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
Also clean the switch/case statement so that it uses the new path. (Eventually we'll have to setup a smarter function to take in the tour_num and the file_name and construct the correct path to return the image require() from.
The text was updated successfully, but these errors were encountered:
Because we need to import our static local files at build time, we need to use the switch/case statement to require() in the files.
To keep things clean, we should namespace our data/tours/tour_0/images files so that they are distinguishable from future tour_1 files.
so the files should be named:
Also clean the switch/case statement so that it uses the new path. (Eventually we'll have to setup a smarter function to take in the tour_num and the file_name and construct the correct path to return the image require() from.
The text was updated successfully, but these errors were encountered: