Skip to content

Commit

Permalink
content: update react
Browse files Browse the repository at this point in the history
  • Loading branch information
luizchaves committed Oct 20, 2024
1 parent 21f53e6 commit a6d44b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/content/classnotes/react/introduction/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,29 +220,29 @@ export default function InvestmentCard(props) {
<div className="bg-white shadow-md rounded-lg p-4 relative">
<div className="flex justify-between items-center">
<h3 className="investment-name text-lg font-semibold text-gray-700">
{props, investment.name}
{props.investment.name}
</h3>
<p className="investment-value text-lg font-semibold text-gray-700">
{formatCurrency(props, investment.value / 100)}
{formatCurrency(props.investment.value / 100)}
</p>
</div>
<div className="mt-4">
<p className="text-sm text-gray-500">
<span className="font-bold mr-1">Origem:</span>
<span className="investment-origin">{props, investment.origin}</span>
<span className="investment-origin">{props.investment.origin}</span>
</p>
<p className="text-sm text-gray-500">
<span className="font-bold mr-1">Categoria:</span>
<span className="investment-category">{props, investment.category}</span>
<span className="investment-category">{props.investment.category}</span>
</p>
<p className="text-sm text-gray-500">
<span className="font-bold mr-1">Taxa:</span>
<span className="investment-interest">{props, investment.interest}</span>
<span className="investment-interest">{props.investment.interest}</span>
</p>
<p className="text-sm text-gray-500">
<span className="font-bold mr-1">Data:</span>
<span className="investment-created_at">
{formatDate(props, investment.created_at)}
{formatDate(props.investment.created_at)}
</span>
</p>
</div>
Expand Down

0 comments on commit a6d44b9

Please sign in to comment.