Skip to content

Commit

Permalink
Merge pull request #901 from digma-ai/fix/link
Browse files Browse the repository at this point in the history
Fix link
  • Loading branch information
kshmidt-digma committed Jun 18, 2024
2 parents ab30c11 + 12fe2c8 commit b40cec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/Link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as s from "./styles";
import { LinkProps } from "./types";

const LinkComponent = (
{ onClick, href = "#", className, target, rel, children }: LinkProps,
{ onClick, href, className, target, rel, children }: LinkProps,
ref: ForwardedRef<HTMLAnchorElement>
) => {
const handleClick = (e: MouseEvent<HTMLAnchorElement>) => {
Expand All @@ -19,7 +19,7 @@ const LinkComponent = (
<s.Link
ref={ref}
className={className}
href={href}
href={href ?? "#"}
target={target}
rel={rel}
onClick={handleClick}
Expand Down

0 comments on commit b40cec8

Please sign in to comment.