浏览代码

fix sidebar home button

Aykut Saraç 3 年之前
父节点
当前提交
85c8fd78d6
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/components/Sidebar/index.tsx

+ 4 - 4
src/components/Sidebar/index.tsx

@@ -154,13 +154,13 @@ const Sidebar: React.FC<{
             </StyledLogo>
           </StyledElement>
         </Link>
-        <Link passHref href="/">
-          <Tooltip title="Home">
+        <Tooltip title="Home">
+          <Link passHref href="/">
             <StyledElement as="a">
               <AiFillHome />
             </StyledElement>
-          </Tooltip>
-        </Link>
+          </Link>
+        </Tooltip>
         <Tooltip title="Auto Format">
           <StyledElement
             as="a"