File tree Expand file tree Collapse file tree
client/src/boards/european-projects/pages/horizon-europe/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import PositionnementContent from "./tabs/PositionnementContent";
66import CollaborationsContent from "./tabs/CollaborationsContent" ;
77import CheckEICAccelerator from "../../../components/check-eic-accelerator" ;
88import EntitiesContent from "./tabs/EntitiesContent" ;
9+ import StructureIdentity from "./structure-identity" ;
910
1011export default function TabsContent ( ) {
1112 const [ searchParams , setSearchParams ] = useSearchParams ( ) ;
@@ -27,6 +28,7 @@ export default function TabsContent() {
2728 return (
2829 < div >
2930 < CheckEICAccelerator />
31+ < StructureIdentity />
3032 < nav className = "fr-nav" role = "navigation" aria-label = "Menu principal" >
3133 < ul className = "fr-nav__list" >
3234 < li className = "fr-nav__item" >
Original file line number Diff line number Diff line change 1+ import { useSearchParams } from "react-router-dom" ;
2+ import { Container , Row , Col } from "@dataesr/dsfr-plus" ;
3+
4+ export default function StructureIdentity ( ) {
5+ const [ searchParams ] = useSearchParams ( ) ;
6+ const currentLang = searchParams . get ( "language" ) || "en" ;
7+ const structureId = searchParams . get ( "structureid" ) ;
8+
9+ if ( ! structureId ) {
10+ return null ;
11+ }
12+
13+ return (
14+ < Container fluid >
15+ < Row >
16+ < Col >
17+ { currentLang === "fr" ? "id de la structure : " : "structure id: " }
18+ { structureId }
19+ </ Col >
20+ </ Row >
21+ </ Container >
22+ ) ;
23+ }
You can’t perform that action at this time.
0 commit comments