cleaning and updating

This commit is contained in:
Antoine M 2024-09-12 12:14:04 +02:00
parent 9a675a3b6a
commit 2f92de5fe7
6 changed files with 12 additions and 12 deletions

15
package-lock.json generated
View File

@ -6271,9 +6271,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001580",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz",
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==",
"version": "1.0.30001660",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz",
"integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg==",
"funding": [
{
"type": "opencollective",
@ -6287,7 +6287,8 @@
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
],
"license": "CC-BY-4.0"
},
"node_modules/case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",
@ -23835,9 +23836,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001580",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz",
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA=="
"version": "1.0.30001660",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz",
"integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg=="
},
"case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",

View File

@ -8,7 +8,6 @@ import screenWorker2 from "../assets/img/illustrations/lhoist-accueil-personnage
import AnimatedPage from "../components/AnimatedPage";
import BrandingLogo from "../components/ui/LhoistBrandingLogo.jsx";
import Clouds from "../components/animations/Clouds";
import CookiesModal from "../components/Modals/CookiesModal.jsx";
export default function Home() {

View File

@ -8,7 +8,7 @@ import ResultsModals from "../components/results/ResultsModals";
import { useNavigate } from "react-router-dom";
export default function Results() {
const { language, screenTranslations } = useUser();
// const { language, screenTranslations } = useUser();
// if (!screenTranslations) return <p>loading</p>;
let location = useLocation();

View File

@ -20,7 +20,7 @@ import { useUser } from "../hooks/useUser";
export default function Thematiques() {
const gamesDatas = useWordpressCustomData(`/screen/play/all`);
const { language, screensTranslations } = useUser();
const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.ui || !screensTranslations.pagesName) return <Loading />;
const uiScreenTranslations = screensTranslations.ui;

View File

@ -7,7 +7,7 @@ import warningSticker from "../assets/img/illustrations/lhoist-prevention-smartp
import BrandingLogo from "../components/ui/LhoistBrandingLogo.jsx";
export default function Warning() {
const { language, screensTranslations } = useUser();
const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.warning) return <Loading />;
const currentScreenTranslations = screensTranslations.warning;
const uiTranslations = screensTranslations.ui;

View File

@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
import axios from "axios";
import { useUser } from "../hooks/useUser";
const BASE_URL = process.env.REACT_APP_BASE_URL;
// const BASE_URL = process.env.REACT_APP_BASE_URL;
const BASE_CUSTOM_URL = process.env.REACT_APP_BASE_CUSTOM_URL;
const fetchWordpressData = async (url) => {