diff --git a/src/components/PokemonCard/PokemonCard.tsx b/src/components/PokemonCard/PokemonCard.tsx index f5427b1..4e245aa 100644 --- a/src/components/PokemonCard/PokemonCard.tsx +++ b/src/components/PokemonCard/PokemonCard.tsx @@ -17,12 +17,7 @@ export function formatNumber(num: number) { return '#' + num.toString().padStart(3, '0'); } -export default function PokemonCard({ - id, - name, - image, - types, -}: PokemonCardProps) { +const PokemonCard = ({ id, name, image, types }: PokemonCardProps) => { let finalColor; if (types.length === 2) { @@ -73,4 +68,6 @@ export default function PokemonCard({ ); -} +}; + +export default PokemonCard;