removing unused vars

This commit is contained in:
Antoine M 2024-05-13 10:58:01 +02:00
parent 10a9664c93
commit 573441da9c
6 changed files with 4 additions and 10 deletions

View File

@ -20,7 +20,6 @@
@import "./components/ui/AppLogoMarkup.scss"; @import "./components/ui/AppLogoMarkup.scss";
@import "./components/ui/AppLogoVector.scss"; @import "./components/ui/AppLogoVector.scss";
// @import "./components/ui/AppLogo.scss";
@import "./components/ui/BrandingLogo.scss"; @import "./components/ui/BrandingLogo.scss";
@import "./components/ui/CountrySelect.scss"; @import "./components/ui/CountrySelect.scss";
@import "./components/ui/LanguageSelect.scss"; @import "./components/ui/LanguageSelect.scss";

View File

@ -3,13 +3,10 @@ import Lottie from "lottie-react";
import { motion } from "framer-motion"; import { motion } from "framer-motion";
import animationPoints from "../../assets/animations/ecran-points.json"; import animationPoints from "../../assets/animations/ecran-points.json";
import { useGame } from "../../hooks/useGame";
import { useUser } from "../../hooks/useUser"; import { useUser } from "../../hooks/useUser";
import Loading from "../animations/Loading"; import Loading from "../animations/Loading";
export default function PointsAndTime({ setNextSlide, setPreviousSlide, startGame }) { export default function PointsAndTime({ setNextSlide, setPreviousSlide, startGame }) {
const { setHasCheckedTutorial, hasCheckedTutorial } = useGame();
const { screensTranslations } = useUser(); const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.tutorial) return <Loading />; if (!screensTranslations || !screensTranslations.tutorial) return <Loading />;

View File

@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from "react"; import React, { useState } from "react";
import Modal from "../ui/Modal.jsx"; import Modal from "../ui/Modal.jsx";
import { useGame } from "../../hooks/useGame.jsx"; import { useGame } from "../../hooks/useGame.jsx";
import MoveAround from "./MoveAround.jsx"; import MoveAround from "./MoveAround.jsx";

View File

@ -5,7 +5,7 @@ import CountriesJSON from "../../data/countries/countries.json";
export default function CountrySelect({ label }) { export default function CountrySelect({ label }) {
const { country, changeCountry } = useUser(); const { country, changeCountry } = useUser();
const { language, screensTranslations } = useUser(); const { language } = useUser();
const [isSubmenuOpen, setIsSubmenuOpen] = useState(false); const [isSubmenuOpen, setIsSubmenuOpen] = useState(false);
function handleChangeCountry(country) { function handleChangeCountry(country) {

View File

@ -1,5 +1,5 @@
import React from "react"; 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 }) { export default function Modal({ open, onClose, children, className, closeModal }) {
const modalRef = useRef(null); const modalRef = useRef(null);

View File

@ -10,15 +10,13 @@ import "swiper/css/pagination";
import "swiper/css/navigation"; import "swiper/css/navigation";
import "swiper/css/effect-cards"; 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 { useWordpressCustomData } from "../services/WordpressFetchData";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
export default function Thematiques() { export default function Thematiques() {
const gamesDatas = useWordpressCustomData(`/screen/play/all`); const gamesDatas = useWordpressCustomData(`/screen/play/all`);
console.log(gamesDatas);
return ( return (
<AnimatedPage className='page-container page-container--thematiques '> <AnimatedPage className='page-container page-container--thematiques '>