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) => {