Skip to content

Commit

Permalink
Use restprops for href prop
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed May 17, 2024
1 parent 6ce97c7 commit 0a05b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/Breadcrumb/BreadcrumbLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import type { AnchorHTMLAttributes, ForwardedRef } from 'react'
export type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>

export const BreadcrumbLink = forwardRef(
({ children, className, href, ...restProps }: BreadcrumbLinkProps, ref: ForwardedRef<HTMLAnchorElement>) => (
({ children, className, ...restProps }: BreadcrumbLinkProps, ref: ForwardedRef<HTMLAnchorElement>) => (
<li className="ams-breadcrumb__item">
<a {...restProps} className={clsx('ams-breadcrumb__link', className)} href={href} ref={ref}>
<a {...restProps} className={clsx('ams-breadcrumb__link', className)} ref={ref}>
{children}
</a>
</li>
Expand Down

0 comments on commit 0a05b30

Please sign in to comment.