Closed cgilroy closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/igihcksn1/mypocketmonsters/5BfwfNn6qdk48ZQdfJTqnstUJXD5
✅ Preview: https://mypocketmonsters-git-fork-cgilroy-add-game-ver-d43020-igihcksn1.vercel.app
@igihcksn this one is ready for review when you get the chance!
Nice changes @cgilroy, appreciate ur help thank you
What's in this PR?
This PR adds the game versions section to the pokemon details, resolving #12.
Changes
GenerateGameVersions
which generates the logo image markupPokeCommonData
GraphQL fetch now usesfetchPolicy: "no-cache"
, as the game versions were not being returned properly beforeimportAll
utility function, which takes arequire.context
and imports all the modules within that context. Very useful for importing large amounts of images!