fix: refactor buttons on card grid
This commit is contained in:
@@ -20,22 +20,8 @@ export default function CardsGrid({ cards_grid }: CardsGridProps) {
|
||||
scriptedTopTitle={card.scripted_top_title}
|
||||
heading={card.heading}
|
||||
bodyText={card.body_text}
|
||||
secondaryButton={
|
||||
card.secondaryButton && {
|
||||
href: card.secondaryButton.link.href,
|
||||
title: card.secondaryButton.link.title,
|
||||
openInNewTab: card.secondaryButton.open_in_new_tab,
|
||||
isExternal: card.secondaryButton.isExternal,
|
||||
}
|
||||
}
|
||||
primaryButton={
|
||||
card.primaryButton && {
|
||||
href: card.primaryButton.link.href,
|
||||
title: card.primaryButton.link.title,
|
||||
openInNewTab: card.primaryButton.open_in_new_tab,
|
||||
isExternal: card.primaryButton.isExternal,
|
||||
}
|
||||
}
|
||||
secondaryButton={card.secondaryButton}
|
||||
primaryButton={card.primaryButton}
|
||||
/>
|
||||
))}
|
||||
</CardGrid>
|
||||
|
||||
Reference in New Issue
Block a user