setting up routing, cleaning up context

This commit is contained in:
Mikayla Dobson
2022-07-21 14:38:58 -05:00
parent 9959cbf4b1
commit cfae1ddfbb
12 changed files with 285 additions and 72 deletions

View File

@@ -1,4 +1,5 @@
import { CardData } from '../../util/types';
import { v4 } from 'uuid';
type CardProps = {
data: CardData
@@ -14,7 +15,7 @@ export default function Card({ data }: CardProps) {
{ Object.keys(data.resourceCost).map((key, value) => {
return (
// @ts-ignore
<p>{key}: {data.resourceCost[key]}</p>
<p key={v4()}>{key}: {data.resourceCost[key]}</p>
)
}) }
</div>