From 22cab09979a4e996534d6bf17bb2ab9bdb8c1e6a Mon Sep 17 00:00:00 2001 From: zhwcreate <3331598351@qq.com> Date: Sun, 29 Sep 2024 15:29:02 +0800 Subject: [PATCH 1/5] fix: key error --- src/components/home/card-hover-effect/index.tsx | 2 +- src/components/home/footer/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/home/card-hover-effect/index.tsx b/src/components/home/card-hover-effect/index.tsx index 779c1f4..30cdc9d 100644 --- a/src/components/home/card-hover-effect/index.tsx +++ b/src/components/home/card-hover-effect/index.tsx @@ -64,7 +64,7 @@ export function HoverEffect({
{items.map((item, idx) => ( setHoveredIndex(idx)} diff --git a/src/components/home/footer/index.tsx b/src/components/home/footer/index.tsx index 8f6b977..e724753 100644 --- a/src/components/home/footer/index.tsx +++ b/src/components/home/footer/index.tsx @@ -93,10 +93,10 @@ const renderLink = (products: LinkProps[]) => )); const renderIcon = (icons: Icon[]) => - icons.map((icon) => ( + icons.map((icon, idx) => ( {icon.icon} From 5d59c41777d315d8ad4d04a8a19efb22cdd80b5a Mon Sep 17 00:00:00 2001 From: zhwcreate <3331598351@qq.com> Date: Sun, 29 Sep 2024 15:56:24 +0800 Subject: [PATCH 2/5] feat: key --- src/app/page.tsx | 4 ++-- src/components/extension/tree-view-api/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index e12ec29..61c4bcf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -53,13 +53,13 @@ const projects = [ icon: '/node.svg', title: 'Vanilla', description: 'JavaScript', - link: '/f', + link: '/g', }, { icon: '/node.svg', title: 'Vanilla', description: 'TypeScript', - link: '/f', + link: '/h', }, ]; diff --git a/src/components/extension/tree-view-api/index.tsx b/src/components/extension/tree-view-api/index.tsx index de1f7ca..9617f0c 100644 --- a/src/components/extension/tree-view-api/index.tsx +++ b/src/components/extension/tree-view-api/index.tsx @@ -258,8 +258,8 @@ const Folder = forwardRef
{expendedItems?.includes(value) - ? openIcon ?? - : closeIcon ?? } + ? (openIcon ?? ) + : (closeIcon ?? )} {element}
From e676e6290e387328209bd19ea1d7087047e2594e Mon Sep 17 00:00:00 2001 From: zhwcreate <3331598351@qq.com> Date: Sun, 29 Sep 2024 16:01:31 +0800 Subject: [PATCH 3/5] fix: ci --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 61c4bcf..cdcebea 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -77,7 +77,7 @@ const socialIcons = [ const router = [ { title: 'Docs', - link: '/a', + link: '/a1', }, { title: 'Blog', From 954032fdc966590db6a35baf4038bd050ffa0969 Mon Sep 17 00:00:00 2001 From: zhwcreate <3331598351@qq.com> Date: Sun, 29 Sep 2024 16:06:44 +0800 Subject: [PATCH 4/5] fix: ci --- src/components/extension/tree-view-api/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/extension/tree-view-api/index.tsx b/src/components/extension/tree-view-api/index.tsx index 9617f0c..58eb4cb 100644 --- a/src/components/extension/tree-view-api/index.tsx +++ b/src/components/extension/tree-view-api/index.tsx @@ -1,3 +1,4 @@ +/* eslint-disable prettier/prettier */ 'use client'; import React, { From 68eb2d508e6db7d16b097a1905ea24a7a916e978 Mon Sep 17 00:00:00 2001 From: zhwcreate <3331598351@qq.com> Date: Sun, 29 Sep 2024 16:20:25 +0800 Subject: [PATCH 5/5] fix: ci --- src/components/extension/tree-view-api/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/extension/tree-view-api/index.tsx b/src/components/extension/tree-view-api/index.tsx index 58eb4cb..8d1fc4f 100644 --- a/src/components/extension/tree-view-api/index.tsx +++ b/src/components/extension/tree-view-api/index.tsx @@ -237,6 +237,8 @@ const Folder = forwardRef; + const closeElement = closeIcon ?? ; return ( @@ -258,9 +260,7 @@ const Folder = forwardRef
- {expendedItems?.includes(value) - ? (openIcon ?? ) - : (closeIcon ?? )} + {expendedItems?.includes(value) ? openElement : closeElement} {element}