Skip to content
Snippets Groups Projects
Commit cdd46a5e authored by Julien MARGAIL's avatar Julien MARGAIL
Browse files

Merge branch 'pgiis' into 'main'

fix no button action if empty

See merge request onegeo-suite/libs/gatsby-theme-onegeo!1
parents 7507a51b e541bf3f
Branches
Tags
No related merge requests found
...@@ -120,7 +120,7 @@ const Hero = (props: Props) => { ...@@ -120,7 +120,7 @@ const Hero = (props: Props) => {
<div className="text-primary">{subtitle}</div> <div className="text-primary">{subtitle}</div>
</h1> </h1>
<p className="mb-5">{content}</p> <p className="mb-5">{content}</p>
{action ? ( {action && action.name !== "" ? (
<Button <Button
className="btn-primary mt-10 text-white" className="btn-primary mt-10 text-white"
{...action} {...action}
... ...
......
...@@ -126,7 +126,7 @@ const Component = (props: IComponent) => { ...@@ -126,7 +126,7 @@ const Component = (props: IComponent) => {
case "hero": case "hero":
let heroaction = actions?.length let heroaction = actions?.length
? actions[0] ? actions[0]
: { title: "", to: "" } : { name: "", url: "" }
return ( return (
<Hero <Hero
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment