@@ -5,6 +5,7 @@ import SyntheseContent from "./tabs/SyntheseContent";
55import PositionnementContent from "./tabs/PositionnementContent" ;
66import EvolutionContent from "./tabs/EvolutionContent" ;
77import EntitiesContent from "./tabs/EntitiesContent" ;
8+ import PiContent from "./tabs/PiContent" ;
89
910export default function TabsContent ( ) {
1011 const [ searchParams , setSearchParams ] = useSearchParams ( ) ;
@@ -17,7 +18,7 @@ export default function TabsContent() {
1718 }
1819
1920 // Fonction pour changer d'onglet
20- const handleTabChange = ( newTab : "synthesis" | "positioning" | "evolution" | "entities" ) => {
21+ const handleTabChange = ( newTab : "synthesis" | "positioning" | "evolution" | "entities" | "pi" ) => {
2122 const newParams = new URLSearchParams ( searchParams ) ;
2223 newParams . set ( "section" , newTab ) ;
2324 setSearchParams ( newParams ) ;
@@ -63,6 +64,18 @@ export default function TabsContent() {
6364 { getIntlLabel ( "entities" ) }
6465 </ button >
6566 </ li >
67+ < li className = "fr-nav__item" >
68+ < button
69+ className = "fr-nav__link"
70+ onClick = { ( e ) => {
71+ e . preventDefault ( ) ;
72+ handleTabChange ( "pi" ) ;
73+ } }
74+ aria-current = { activeTab === "pi" ? "page" : undefined }
75+ >
76+ { getIntlLabel ( "pi" ) }
77+ </ button >
78+ </ li >
6679 < li className = "fr-nav__item" >
6780 < button
6881 className = "fr-nav__link"
@@ -81,6 +94,7 @@ export default function TabsContent() {
8194 { activeTab === "synthesis" && < SyntheseContent /> }
8295 { activeTab === "positioning" && < PositionnementContent /> }
8396 { activeTab === "entities" && < EntitiesContent /> }
97+ { activeTab === "pi" && < PiContent /> }
8498 { activeTab === "evolution" && < EvolutionContent /> }
8599 </ div >
86100 </ div >
0 commit comments