handling screen translations

This commit is contained in:
Antoine M 2024-02-21 11:07:57 +01:00
parent 690cbca6f6
commit 6ec2570f35

View File

@ -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 <p>loading</p>;
if (!screensTranslations || !screensTranslations.profile) return <Loading />;
const currentScreenTranslations = screensTranslations.profile;
function handleChangeProfile(e) {