removing unused vars
This commit is contained in:
parent
10a9664c93
commit
573441da9c
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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 />;
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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 '>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user