1
1
'use client' ;
2
+ import { useRouter } from 'next/navigation' ;
3
+ import { Fragment } from 'react' ;
4
+
2
5
import { ExternalLink } from '@/app/ui/externalLink/ExternalLink' ;
3
6
import { Button , ButtonMenu , Event , Icon , useEventTracker } from '@/ui' ;
4
- import { useRouter } from 'next/navigation' ;
5
7
6
8
const DOWNLOAD_TEMPLATE_OPTIONS = [
7
9
{ value : 'xlsx' , label : 'Format Excel (.xlsx)' } ,
@@ -70,7 +72,7 @@ export const RequestPlanImportView = () => {
70
72
'https://calendly.com/territoiresentransitions/demo-optimisation-pilotage-actions'
71
73
}
72
74
text = { 'en cliquant ici.' }
73
- > </ ExternalLink >
75
+ / >
74
76
</ li >
75
77
< li >
76
78
Consultez notre article sur les prochaines étapes{ ' ' }
@@ -79,7 +81,7 @@ export const RequestPlanImportView = () => {
79
81
'https://aide.territoiresentransitions.fr/fr/article/plan-daction-en-ligne-les-prochaines-etapes-lx9mnb'
80
82
}
81
83
text = { 'en cliquant ici.' }
82
- > </ ExternalLink >
84
+ / >
83
85
</ li >
84
86
</ ul >
85
87
< div className = "h-[1px] my-8 bg-gray-300" />
@@ -90,7 +92,7 @@ export const RequestPlanImportView = () => {
90
92
< ExternalLink
91
93
href = { 'https://www.youtube.com/watch?v=jQ6qnXH4tKY' }
92
94
text = { 'en cliquant ici.' }
93
- > </ ExternalLink >
95
+ / >
94
96
</ li >
95
97
< li >
96
98
Prenez un rendez-vous individuel avec notre équipe{ ' ' }
@@ -99,7 +101,7 @@ export const RequestPlanImportView = () => {
99
101
'https://calendly.com/territoiresentransitions/entretien-support-plan-d-action'
100
102
}
101
103
text = { 'en cliquant ici.' }
102
- > </ ExternalLink >
104
+ / >
103
105
</ li >
104
106
</ ul >
105
107
< div className = "h-[1px] my-8 bg-gray-300" />
@@ -127,9 +129,8 @@ const DownloadMenu = () => {
127
129
< ButtonMenu icon = "download-line" size = "sm" text = "Télécharger le modèle" >
128
130
< div className = "flex flex-col" >
129
131
{ DOWNLOAD_TEMPLATE_OPTIONS . map ( ( option , index ) => (
130
- < >
132
+ < Fragment key = { option . value } >
131
133
< button
132
- key = { option . value }
133
134
className = "py-2 px-3 text-sm text-primary-9 hover:!bg-primary-1"
134
135
onClick = { ( ) => {
135
136
trackEvent ( Event . fiches . downloadModele , {
@@ -143,7 +144,7 @@ const DownloadMenu = () => {
143
144
{ index < DOWNLOAD_TEMPLATE_OPTIONS . length - 1 && (
144
145
< div className = "h-[1px] bg-grey-4" />
145
146
) }
146
- </ >
147
+ </ Fragment >
147
148
) ) }
148
149
</ div >
149
150
</ ButtonMenu >
0 commit comments