fix: button links not responding when touched on a mobile device (#217)

This commit is contained in:
kimatata
2025-04-29 18:38:09 +09:00
committed by GitHub
parent 921c732860
commit de9e26a241
6 changed files with 72 additions and 54 deletions

View File

@@ -0,0 +1,10 @@
'use client';
import { forwardRef } from 'react';
import { Link } from '@/src/i18n/routing';
type Props = React.ComponentPropsWithoutRef<typeof Link>;
const ClientLink = forwardRef<HTMLAnchorElement, Props>(({ href, ...props }, ref) => (
<Link ref={ref} href={href} {...props} />
));
ClientLink.displayName = 'ClientLink';
export default ClientLink;