chore: add provider logos

This commit is contained in:
Jesse Egbosionu
2025-12-09 07:27:49 +01:00
parent caa4c1202f
commit 41c1b68a3b
4 changed files with 44 additions and 54 deletions
+11 -2
View File
@@ -1,4 +1,4 @@
export default function RateCard({ provider, rate, href, isBest, index, formatCurrency }) {
export default function RateCard({ provider, rate, href, isBest, index, formatCurrency, logo }) {
return (
<a
href={href}
@@ -8,7 +8,16 @@ export default function RateCard({ provider, rate, href, isBest, index, formatCu
style={{ animationDelay: `${index * 0.1}s` }}
>
<div className="rate-card-header">
<h3 className="provider-name">{provider}</h3>
<div className="provider-info">
{logo && (
<img
src={logo}
alt={`${provider} logo`}
className="provider-logo"
/>
)}
<h3 className="provider-name">{provider}</h3>
</div>
{isBest && <span className="best-badge">Best Rate</span>}
</div>