Move google calendar url to APP_CONFIG

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-03-17 08:39:21 +01:00
parent 64e5e33c4a
commit 580a0c3156
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
export const APP_CONFIG = {
contactEmail: "contact@example.com",
contactPhone: "+33 01 02 03 04 05"
contactPhone: "+33 01 02 03 04 05",
newCalendarURL: "https://calendar.google.com/calendar/u/0/r/settings/addbyurl?cid="
}
@@ -1,7 +1,8 @@
import Button from "../../../../components/ui/Button/Button";
import styles from "../../HomePage.module.css"
import { useContext } from "react";
import {AuthContext, AuthContextType} from "../../../../contexts/Auth/AuthContext";
import { AuthContext, AuthContextType } from "../../../../contexts/Auth/AuthContext";
import { APP_CONFIG } from "../../../../config/appConfig";
export default function ExportBtn() {
@@ -11,7 +12,7 @@ export default function ExportBtn() {
return <Button className={styles.exportbtn}
onClick={() => {
window.open(
`https://calendar.google.com/calendar/u/0/r/settings/addbyurl?cid=${calendarUrl}`
`${APP_CONFIG.newCalendarURL}${calendarUrl}`
);
}}
>