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:
parent
56697568f9
commit
0c65520e2f
2 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ export default function Legal() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-3 mb-12">
|
<div className="space-y-3 mb-12">
|
||||||
{DOCS.map(({ title, desc, href, es }) => (
|
{DOCS.map(({ icon: Icon, title, desc, href, es }) => (
|
||||||
<a
|
<a
|
||||||
key={href}
|
key={href}
|
||||||
href={href}
|
href={href}
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ export default function PricingPage({ onRequireLogin }) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="divide-y divide-rule border-b border-rule">
|
<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 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">
|
<div className="flex items-center gap-2 text-ink2">
|
||||||
<Icon size={15} className="text-muted shrink-0" />
|
<Icon size={15} className="text-muted shrink-0" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue