diff --git a/src/App.js b/src/App.js index 42f2ffc..6389810 100644 --- a/src/App.js +++ b/src/App.js @@ -4,17 +4,16 @@ const sqlCards = [{ "CardImg":"https://is4-ssl.mzstatic.com/image/thumb/Purple11 { "CardImg":"https://spellbook.blob.core.windows.net/hodassets/defaultportraits/fighter_default_cultist_female_0_2.jpg", "CardName": "Dragon Worshipper", "ManaCost": 1, "Power": 1, "Toughness": 1, "CardDesc": "He spends his days praying to dragons.", "CreatureType": "Human" }, { "CardImg":"https://a.wattpad.com/useravatar/Angoleth.256.592295.jpg", "CardName": "Dragon Whelp", "ManaCost": 2, "Power": 3, "Toughness": 2, "CardDesc": "He will get there.", "CreatureType": "Dragon" }]; -function Card(props) { - props = props.props +function Card(data) { return (
{props.CardDesc}
-Mana: {props.ManaCost}
-Power: {props.Power}
-Toughness: {props.Toughness}
+{data.CardDesc}
+Mana: {data.ManaCost}
+Power: {data.Power}
+Toughness: {data.Toughness}