From 4c662e89b5617c7d5092a6e1b910235a3ea82f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sat, 4 Jul 2026 11:46:00 +0400 Subject: [PATCH] chore: retirer le state et l'UI morts de navigasyon.js --- components/navigasyon.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/components/navigasyon.js b/components/navigasyon.js index f832ef8..55ff968 100644 --- a/components/navigasyon.js +++ b/components/navigasyon.js @@ -1,15 +1,11 @@ 'use client' -import {useState} from 'react' -import PropTypes from 'prop-types' import {useRouter, usePathname} from 'next/navigation' import {styled} from '@mui/material/styles' import AppBar from '@mui/material/AppBar' import Tabs, {tabsClasses} from '@mui/material/Tabs' import Tab from '@mui/material/Tab' -import Typography from '@mui/material/Typography' -import Box from '@mui/material/Box' import {useMediaQuery} from '@mui/material' import MusicNoteIcon from '@mui/icons-material/MusicNote' @@ -49,32 +45,6 @@ const tabPath = { awtis: 3, } -function TabPanel(props) { - const {children, value, index, ...other} = props - - return ( - - ) -} - -TabPanel.propTypes = { - children: PropTypes.node, - index: PropTypes.any.isRequired, - value: PropTypes.any.isRequired -} - function a11yProps(index) { return { id: `scrollable-force-tab-${index}`, @@ -89,11 +59,8 @@ export default function Navigasyon() { const selectedTab = tabPath[selectedPath] const isMobile = useMediaQuery('(max-width:422px)') - const [value, setValue] = useState(0) const handleChange = (event, newValue) => { - setValue(newValue) - if (newValue !== selectedTab) { router.push(tabRouteHref[newValue]) } @@ -126,10 +93,6 @@ export default function Navigasyon() { } - - - - )