From ecc777799218e6ebca03589e5b99a391724bf130 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 13 Mar 2024 17:52:46 +0100 Subject: [PATCH] refactoring and cleaning --- src/pages/Profile.jsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/pages/Profile.jsx b/src/pages/Profile.jsx index b4901fa..f35a563 100644 --- a/src/pages/Profile.jsx +++ b/src/pages/Profile.jsx @@ -1,10 +1,9 @@ import React from "react"; -import Nav from "../components/ui/Nav"; - -import { useLocation, useNavigate } from "react-router-dom"; -import { motion } from "framer-motion"; +import { useNavigate } from "react-router-dom"; import { useUser } from "../hooks/useUser"; -// import screensTranslations from "../data/screensTranslations.json"; + +import Nav from "../components/ui/Nav"; +import AnimatedPage from "../components/AnimatedPage"; import lhoistEmployee from "../assets/img/profiles/lhoist-employee.svg"; import subcontractorEmployee from "../assets/img/profiles/subcontractor-employee.svg"; @@ -12,14 +11,12 @@ import driver from "../assets/img/profiles/driver.svg"; import civilian from "../assets/img/profiles/civilian.svg"; import Loading from "../components/animations/Loading.jsx"; -import AnimatedPage from "../components/AnimatedPage"; export default function Profile() { const navigate = useNavigate(); - const location = useLocation(); const { profile, changeProfile } = useUser(); - const { language, screensTranslations } = useUser(); + const { screensTranslations } = useUser(); if (!screensTranslations || !screensTranslations.profile) return ; const currentScreenTranslations = screensTranslations.profile;