From ec34e07ffb6185857979b5dea97710f806702935 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 22 Feb 2024 16:45:26 +0100 Subject: [PATCH] renaming MenuComponent into Nav --- src/components/ui/{Menu.jsx => Nav.jsx} | 1 - src/pages/Country.jsx | 6 +++--- src/pages/Game.jsx | 2 +- src/pages/Home.jsx | 4 ++-- src/pages/Profile.jsx | 4 ++-- src/pages/Results.jsx | 4 ++-- src/pages/Test.jsx | 4 ++-- src/pages/Welcome.jsx | 2 -- 8 files changed, 12 insertions(+), 15 deletions(-) rename src/components/ui/{Menu.jsx => Nav.jsx} (95%) diff --git a/src/components/ui/Menu.jsx b/src/components/ui/Nav.jsx similarity index 95% rename from src/components/ui/Menu.jsx rename to src/components/ui/Nav.jsx index dfcb623..4aa6fca 100644 --- a/src/components/ui/Menu.jsx +++ b/src/components/ui/Nav.jsx @@ -18,7 +18,6 @@ export default function Nav() { */} - ); } diff --git a/src/pages/Country.jsx b/src/pages/Country.jsx index b764595..91ef804 100644 --- a/src/pages/Country.jsx +++ b/src/pages/Country.jsx @@ -1,6 +1,6 @@ import React from "react"; import CountrySelect from "../components/ui/CountrySelect"; -import Menu from "../components/ui/Menu"; +import Nav from "../components/ui/Nav"; import { motion } from "framer-motion"; import { useLocation, useNavigate } from "react-router-dom"; @@ -12,7 +12,7 @@ export default function Country() { const location = useLocation(); const { language, screensTranslations } = useUser(); - + if (!screensTranslations || !screensTranslations.country) return

loading

; const currentScreenTranslations = screensTranslations.country; @@ -24,7 +24,7 @@ export default function Country() { exit={{ x: "-100%", opacity: 1 }} transition={{ duration: 0.3, ease: "easeOut" }}>
- +