diff --git a/src/blocks/BentoRow/Component.tsx b/src/blocks/BentoRow/Component.tsx index 3ce1a3e..0161ed5 100644 --- a/src/blocks/BentoRow/Component.tsx +++ b/src/blocks/BentoRow/Component.tsx @@ -14,17 +14,12 @@ type BentoRowBlockProps = { skills?: Skill[] } -export function BentoRowBlock({ - aboutHeading, - aboutText, - aboutCta, - skillsHeading, - skills, -}: BentoRowBlockProps) { +export function BentoRowBlock(props: BentoRowBlockProps) { + const { aboutHeading, aboutText, aboutCta, skillsHeading, skills } = props + return (
-
{aboutHeading && ( @@ -38,8 +33,8 @@ export function BentoRowBlock({

)}
- {aboutCta?.label && aboutCta?.url && ( - + {aboutCta && aboutCta.label && aboutCta.url && ( + 0 && (
- {skills.map((skill, i) => { + {skills.map(function (skill, i) { const tags = skill.tags - ? skill.tags.split(',').map((t) => t.trim()).filter(Boolean) + ? skill.tags + .split(',') + .map(function (t) { + return t.trim() + }) + .filter(Boolean) : [] return (