fix: button links not responding when touched on a mobile device (#217)
This commit is contained in:
10
frontend/components/ClientLink.tsx
Normal file
10
frontend/components/ClientLink.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user