Add ExportBtn to settings

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-03-18 10:59:00 +01:00
parent 4c22dfc1b1
commit 00d1d948f7
2 changed files with 9 additions and 1 deletions
@@ -9,12 +9,13 @@ export default function ExportCalendarBtn() {
const calendarUrl = `${import.meta.env.VITE_API_URL}/api/export/ics/${user?.id}`;
return <Button
variant="default"
onClick={() => {
window.open(
`${APP_CONFIG.newCalendarURL}${calendarUrl}`
);
}}
>
Exporter
Exporter le calendrier
</Button>
}