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": { "node_modules/caniuse-lite": {
"version": "1.0.30001580", "version": "1.0.30001660",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz",
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==", "integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
@ -6287,7 +6287,8 @@
"type": "github", "type": "github",
"url": "https://github.com/sponsors/ai" "url": "https://github.com/sponsors/ai"
} }
] ],
"license": "CC-BY-4.0"
}, },
"node_modules/case-sensitive-paths-webpack-plugin": { "node_modules/case-sensitive-paths-webpack-plugin": {
"version": "2.4.0", "version": "2.4.0",
@ -23835,9 +23836,9 @@
} }
}, },
"caniuse-lite": { "caniuse-lite": {
"version": "1.0.30001580", "version": "1.0.30001660",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz",
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==" "integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg=="
}, },
"case-sensitive-paths-webpack-plugin": { "case-sensitive-paths-webpack-plugin": {
"version": "2.4.0", "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 AnimatedPage from "../components/AnimatedPage";
import BrandingLogo from "../components/ui/LhoistBrandingLogo.jsx"; import BrandingLogo from "../components/ui/LhoistBrandingLogo.jsx";
import Clouds from "../components/animations/Clouds";
import CookiesModal from "../components/Modals/CookiesModal.jsx"; import CookiesModal from "../components/Modals/CookiesModal.jsx";
export default function Home() { export default function Home() {

View File

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

View File

@ -20,7 +20,7 @@ import { useUser } from "../hooks/useUser";
export default function Thematiques() { export default function Thematiques() {
const gamesDatas = useWordpressCustomData(`/screen/play/all`); const gamesDatas = useWordpressCustomData(`/screen/play/all`);
const { language, screensTranslations } = useUser(); const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.ui || !screensTranslations.pagesName) return <Loading />; if (!screensTranslations || !screensTranslations.ui || !screensTranslations.pagesName) return <Loading />;
const uiScreenTranslations = screensTranslations.ui; 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"; import BrandingLogo from "../components/ui/LhoistBrandingLogo.jsx";
export default function Warning() { export default function Warning() {
const { language, screensTranslations } = useUser(); const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.warning) return <Loading />; if (!screensTranslations || !screensTranslations.warning) return <Loading />;
const currentScreenTranslations = screensTranslations.warning; const currentScreenTranslations = screensTranslations.warning;
const uiTranslations = screensTranslations.ui; const uiTranslations = screensTranslations.ui;

View File

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