diff --git a/src/components/elements/action-link.tsx b/src/components/elements/action-link.tsx index beeff0de..d53f0944 100644 --- a/src/components/elements/action-link.tsx +++ b/src/components/elements/action-link.tsx @@ -1,5 +1,5 @@ import Link from "@components/elements/link"; -import {ChevronRightIcon} from "@heroicons/react/20/solid"; +import {ArrowLongRightIcon} from "@heroicons/react/20/solid"; import {HtmlHTMLAttributes} from "react"; import {twMerge} from "tailwind-merge"; @@ -10,11 +10,11 @@ type Props = HtmlHTMLAttributes & { href: string } -const ActionLink = ({children, ...props}: Props) => { +const ActionLink = ({ children, className, ...props }: Props) => { return ( - + {children} - + ) } diff --git a/src/components/elements/button.tsx b/src/components/elements/button.tsx index 6b907455..7653334e 100644 --- a/src/components/elements/button.tsx +++ b/src/components/elements/button.tsx @@ -80,7 +80,7 @@ export const Button = ({ return ( {children} diff --git a/src/components/elements/link.tsx b/src/components/elements/link.tsx index e754e9af..91d5857d 100644 --- a/src/components/elements/link.tsx +++ b/src/components/elements/link.tsx @@ -12,7 +12,7 @@ type Props = HtmlHTMLAttributes & LinkPro href: string } -const DrupalLink = ({href, className, children, ...props}: Props) => { +const DrupalLink = ({href, children, ...props}: Props) => { // Make sure all links have a href. href = href || "#" const drupalBase: string = (process.env.NEXT_PUBLIC_DRUPAL_BASE_URL || "").replace(/\/$/, ""); @@ -21,7 +21,7 @@ const DrupalLink = ({href, className, children, ...props}: Props) => { href = href.replace(drupalBase, "").replace("", "/"); } - if (className?.includes("link--action")) { + if (props.className?.includes("link--action")) { return ( {children} @@ -29,12 +29,12 @@ const DrupalLink = ({href, className, children, ...props}: Props) => { ) } - if (className?.includes("button")) { + if (props.className?.includes("button")) { return (