Skip to content

Commit c69928a

Browse files
committed
Ajoute la clé manquante dans un map
1 parent ce7efa3 commit c69928a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

apps/app/src/plans/plans/import-plan/request-plan-import-view.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
'use client';
2+
import { useRouter } from 'next/navigation';
3+
import { Fragment } from 'react';
4+
25
import { ExternalLink } from '@/app/ui/externalLink/ExternalLink';
36
import { Button, ButtonMenu, Event, Icon, useEventTracker } from '@/ui';
4-
import { useRouter } from 'next/navigation';
57

68
const DOWNLOAD_TEMPLATE_OPTIONS = [
79
{ value: 'xlsx', label: 'Format Excel (.xlsx)' },
@@ -70,7 +72,7 @@ export const RequestPlanImportView = () => {
7072
'https://calendly.com/territoiresentransitions/demo-optimisation-pilotage-actions'
7173
}
7274
text={'en cliquant ici.'}
73-
></ExternalLink>
75+
/>
7476
</li>
7577
<li>
7678
Consultez notre article sur les prochaines étapes{' '}
@@ -79,7 +81,7 @@ export const RequestPlanImportView = () => {
7981
'https://aide.territoiresentransitions.fr/fr/article/plan-daction-en-ligne-les-prochaines-etapes-lx9mnb'
8082
}
8183
text={'en cliquant ici.'}
82-
></ExternalLink>
84+
/>
8385
</li>
8486
</ul>
8587
<div className="h-[1px] my-8 bg-gray-300" />
@@ -90,7 +92,7 @@ export const RequestPlanImportView = () => {
9092
<ExternalLink
9193
href={'https://www.youtube.com/watch?v=jQ6qnXH4tKY'}
9294
text={'en cliquant ici.'}
93-
></ExternalLink>
95+
/>
9496
</li>
9597
<li>
9698
Prenez un rendez-vous individuel avec notre équipe{' '}
@@ -99,7 +101,7 @@ export const RequestPlanImportView = () => {
99101
'https://calendly.com/territoiresentransitions/entretien-support-plan-d-action'
100102
}
101103
text={'en cliquant ici.'}
102-
></ExternalLink>
104+
/>
103105
</li>
104106
</ul>
105107
<div className="h-[1px] my-8 bg-gray-300" />
@@ -127,9 +129,8 @@ const DownloadMenu = () => {
127129
<ButtonMenu icon="download-line" size="sm" text="Télécharger le modèle">
128130
<div className="flex flex-col">
129131
{DOWNLOAD_TEMPLATE_OPTIONS.map((option, index) => (
130-
<>
132+
<Fragment key={option.value}>
131133
<button
132-
key={option.value}
133134
className="py-2 px-3 text-sm text-primary-9 hover:!bg-primary-1"
134135
onClick={() => {
135136
trackEvent(Event.fiches.downloadModele, {
@@ -143,7 +144,7 @@ const DownloadMenu = () => {
143144
{index < DOWNLOAD_TEMPLATE_OPTIONS.length - 1 && (
144145
<div className="h-[1px] bg-grey-4" />
145146
)}
146-
</>
147+
</Fragment>
147148
))}
148149
</div>
149150
</ButtonMenu>

0 commit comments

Comments
 (0)