From 5be7a0c821c0b340649021c8c2d4488d0687b602 Mon Sep 17 00:00:00 2001 From: Dayron Date: Wed, 12 Nov 2025 18:51:25 +0100 Subject: [PATCH] feat: add unique keys to motion components for improved rendering --- src/components/About.tsx | 6 +++++- src/components/Contact.tsx | 2 ++ src/components/Education.tsx | 2 ++ src/components/Header.tsx | 16 ++++++++-------- src/components/Hero.tsx | 2 ++ src/components/Projects.tsx | 2 ++ src/components/Skills.tsx | 10 ++++++++-- 7 files changed, 29 insertions(+), 11 deletions(-) diff --git a/src/components/About.tsx b/src/components/About.tsx index 6276928..c78ebf8 100644 --- a/src/components/About.tsx +++ b/src/components/About.tsx @@ -39,6 +39,7 @@ const About = () => {
{
{ { > {stats.map((stat, index) => ( {
{
{ {
{
{/* Formation principale */} { const { language, setLanguage, t } = useLanguage(); const menuItems = [ - { name: t('nav.home'), href: '#hero' }, - { name: t('nav.about'), href: '#about' }, - { name: t('nav.skills'), href: '#skills' }, - { name: t('nav.projects'), href: '#projects' }, - { name: t('nav.education'), href: '#education' }, - { name: t('nav.contact'), href: '#contact' } + { id: 'home', name: t('nav.home'), href: '#hero' }, + { id: 'about', name: t('nav.about'), href: '#about' }, + { id: 'skills', name: t('nav.skills'), href: '#skills' }, + { id: 'projects', name: t('nav.projects'), href: '#projects' }, + { id: 'education', name: t('nav.education'), href: '#education' }, + { id: 'contact', name: t('nav.contact'), href: '#contact' } ]; const scrollToSection = (href: string) => { @@ -55,7 +55,7 @@ const Header = ({ darkMode, toggleDarkMode }: HeaderProps) => {