From eeb2f949c6be3945bd05805c7999d9cb9617b629 Mon Sep 17 00:00:00 2001 From: Ojakoo Date: Wed, 1 Feb 2023 13:04:05 +0200 Subject: [PATCH] Update Next Link --- src/components/Link.tsx | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/components/Link.tsx b/src/components/Link.tsx index 574cf98..9d2c445 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -16,18 +16,27 @@ const Link: React.FC = ({ }) => { if (template) { return ( - - {/* eslint-disable-next-line jsx-a11y/anchor-has-content */} - - + ); } if (to.startsWith("/") || to.startsWith("#")) { return ( - - {/* eslint-disable-next-line jsx-a11y/anchor-has-content */} - - + ); }