Lenoxo / mk-dashboard

Small web app for showing the score of several fights in the mortal kombat game with a great style
0 stars 0 forks source link

ISSUE 3: Add dynamic info to fightResult component #9

Closed Lenoxo closed 1 day ago

Lenoxo commented 1 day ago

One way it can be achieved would be:

  1. For each fight within profileData.history render a FightResult component showing the data.
  2. For the characters images, try to make an array.find using the character name in the fight data, and when it's found, return the imageUrl.
  3. Set the characters images in the fight result according to the find results.

For now, you don't need to focus on type safety, first write a working product, then add the type safety in the upcoming issue, and later on, move most of the data to Context.