This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 3a6721651b [type:fix] fix Features map each not has unique key prop 
error (#770)
3a6721651b is described below

commit 3a6721651bcb7fc363ad75ce9266620dd9a475a7
Author: tomsun28 <[email protected]>
AuthorDate: Fri Sep 30 11:17:56 2022 +0800

    [type:fix] fix Features map each not has unique key prop error (#770)
---
 src/components/Features.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/Features.tsx b/src/components/Features.tsx
index 04d5feb6dc..b31ea31f00 100644
--- a/src/components/Features.tsx
+++ b/src/components/Features.tsx
@@ -111,8 +111,8 @@ const Features = (): React.ReactElement => (
           slideShadows: true,
         }}
       >
-        {FEATURES.map(({ image, title, subtitle }) => (
-          <SwiperSlide className={styles.swiperSlide}>
+        {FEATURES.map(({ image, title, subtitle }, index) => (
+          <SwiperSlide className={styles.swiperSlide} key={index}>
             <FeatureCard key={title} image={useBaseUrl(image)} title={title} 
subtitle={subtitle} />
           </SwiperSlide>
         ))}
@@ -123,4 +123,4 @@ const Features = (): React.ReactElement => (
   </section>
 );
 
-export default Features;
\ No newline at end of file
+export default Features;

Reply via email to