diff --git a/src/assets/css/App.scss b/src/assets/css/App.scss index bd37dd8..02bbabe 100644 --- a/src/assets/css/App.scss +++ b/src/assets/css/App.scss @@ -20,7 +20,6 @@ @import "./components/ui/AppLogoMarkup.scss"; @import "./components/ui/AppLogoVector.scss"; -// @import "./components/ui/AppLogo.scss"; @import "./components/ui/BrandingLogo.scss"; @import "./components/ui/CountrySelect.scss"; @import "./components/ui/LanguageSelect.scss"; diff --git a/src/components/tutorials/PointsAndTime.jsx b/src/components/tutorials/PointsAndTime.jsx index 652b41e..6943746 100644 --- a/src/components/tutorials/PointsAndTime.jsx +++ b/src/components/tutorials/PointsAndTime.jsx @@ -3,13 +3,10 @@ import Lottie from "lottie-react"; import { motion } from "framer-motion"; import animationPoints from "../../assets/animations/ecran-points.json"; -import { useGame } from "../../hooks/useGame"; import { useUser } from "../../hooks/useUser"; import Loading from "../animations/Loading"; export default function PointsAndTime({ setNextSlide, setPreviousSlide, startGame }) { - const { setHasCheckedTutorial, hasCheckedTutorial } = useGame(); - const { screensTranslations } = useUser(); if (!screensTranslations || !screensTranslations.tutorial) return ; diff --git a/src/components/tutorials/Tutorials.jsx b/src/components/tutorials/Tutorials.jsx index f6f8947..6bc68e2 100644 --- a/src/components/tutorials/Tutorials.jsx +++ b/src/components/tutorials/Tutorials.jsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef, useState } from "react"; +import React, { useState } from "react"; import Modal from "../ui/Modal.jsx"; import { useGame } from "../../hooks/useGame.jsx"; import MoveAround from "./MoveAround.jsx"; diff --git a/src/components/ui/CountrySelect.jsx b/src/components/ui/CountrySelect.jsx index c713a1c..d431714 100644 --- a/src/components/ui/CountrySelect.jsx +++ b/src/components/ui/CountrySelect.jsx @@ -5,7 +5,7 @@ import CountriesJSON from "../../data/countries/countries.json"; export default function CountrySelect({ label }) { const { country, changeCountry } = useUser(); - const { language, screensTranslations } = useUser(); + const { language } = useUser(); const [isSubmenuOpen, setIsSubmenuOpen] = useState(false); function handleChangeCountry(country) { diff --git a/src/components/ui/Modal.jsx b/src/components/ui/Modal.jsx index 6b199a1..cea01b0 100644 --- a/src/components/ui/Modal.jsx +++ b/src/components/ui/Modal.jsx @@ -1,5 +1,5 @@ import React from "react"; -import { useCallback, useEffect, useMemo, useRef } from "react"; +import { useEffect, useRef } from "react"; export default function Modal({ open, onClose, children, className, closeModal }) { const modalRef = useRef(null); diff --git a/src/pages/Thematiques.jsx b/src/pages/Thematiques.jsx index 7c81056..d4cc142 100644 --- a/src/pages/Thematiques.jsx +++ b/src/pages/Thematiques.jsx @@ -10,15 +10,13 @@ import "swiper/css/pagination"; import "swiper/css/navigation"; import "swiper/css/effect-cards"; -import { Keyboard, Pagination, Navigation, EffectCards } from "swiper/modules"; +import { Pagination, Navigation, EffectCards } from "swiper/modules"; -import GameSlide from "../components/Thematiques/GameSlide"; import { useWordpressCustomData } from "../services/WordpressFetchData"; import { Link } from "react-router-dom"; export default function Thematiques() { const gamesDatas = useWordpressCustomData(`/screen/play/all`); - console.log(gamesDatas); return (