fix(dashboard): bind Icon in pricing and legal maps

The hosted-vs-self table on #/pricing and the legal docs list rendered
<Icon> without destructuring icon from the row, which crashed the page.
This commit is contained in:
victormanuel.caverogracia 2026-08-31 18:08:08 +02:00
parent 56697568f9
commit 0c65520e2f
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ export default function Legal() {
</div>
<div className="space-y-3 mb-12">
{DOCS.map(({ title, desc, href, es }) => (
{DOCS.map(({ icon: Icon, title, desc, href, es }) => (
<a
key={href}
href={href}

View file

@ -220,7 +220,7 @@ export default function PricingPage({ onRequireLogin }) {
</div>
<div className="divide-y divide-rule border-b border-rule">
{HOSTED_VS_SELF.map(({ label, hosted, self }) => (
{HOSTED_VS_SELF.map(({ icon: Icon, label, hosted, self }) => (
<div key={label} className="py-4 grid gap-2 md:grid-cols-[9rem_1fr_1fr] md:gap-x-6 md:items-start">
<div className="flex items-center gap-2 text-ink2">
<Icon size={15} className="text-muted shrink-0" />