Skip to content

Commit 5e9cd08

Browse files
committed
refactor: add pathname to href warning
1 parent 7b6d5fd commit 5e9cd08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const BaseLink = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
5656
const { twFlipForRtl } = useRtlFlip()
5757

5858
if (!href) {
59-
console.warn("Link component is missing href prop")
59+
console.warn(`Link component missing href prop, pathname: ${pathname}`)
6060
return <a {...props} />
6161
}
6262

0 commit comments

Comments
 (0)