Skip to content

Commit f839ed5

Browse files
committed
chore: make onCLick function of button go to link instead
1 parent 41251b3 commit f839ed5

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

apps/web/src/features/upload/pages/UploadPage.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,20 @@ export const UploadPage = () => {
129129
fr: 'Télécharger le modèle'
130130
})}
131131
</Button>
132-
<a href="https://opendatacapture.org/en/docs/guides/how-to-upload-data/" rel="noreferrer" target="_blank">
133-
<Button className="gap-1" disabled={!instrument} variant={'primary'}>
134-
<BadgeHelpIcon />
135-
{t({
136-
en: 'Help',
137-
fr: 'Aide'
138-
})}
139-
</Button>
140-
</a>
132+
<Button
133+
className="gap-1"
134+
disabled={!instrument}
135+
variant={'primary'}
136+
onClick={() => {
137+
window.open('https://opendatacapture.org/en/docs/guides/how-to-upload-data/');
138+
}}
139+
>
140+
<BadgeHelpIcon />
141+
{t({
142+
en: 'Help',
143+
fr: 'Aide'
144+
})}
145+
</Button>
141146
</div>
142147
</div>
143148
</div>

0 commit comments

Comments
 (0)