From 6ec2570f35fdeb73707287b9c8f1c19e62e6992e Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 21 Feb 2024 11:07:57 +0100 Subject: [PATCH] handling screen translations --- src/pages/Profile.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Profile.jsx b/src/pages/Profile.jsx index e8aad7a..2822460 100644 --- a/src/pages/Profile.jsx +++ b/src/pages/Profile.jsx @@ -10,6 +10,7 @@ import lhoistEmployee from "../assets/img/profiles/lhoist-employee.svg"; import subcontractorEmployee from "../assets/img/profiles/subcontractor-employee.svg"; 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() { @@ -20,7 +21,7 @@ export default function Profile() { const { language, screensTranslations } = useUser(); - if (!screensTranslations || !screensTranslations.profile) return

loading

; + if (!screensTranslations || !screensTranslations.profile) return ; const currentScreenTranslations = screensTranslations.profile; function handleChangeProfile(e) {