@@ -263,7 +264,7 @@ const Integrations = () => {
id="apiMaps"
name="apiMaps"
margin="dense"
- label={i18n.t("integrations.integrations.maps.apiMaps")}
+ label={t("integrations.integrations.maps.apiMaps")}
variant="outlined"
onChange={handleChangeIntegration}
fullWidth
diff --git a/frontend/src/pages/Login/index.js b/frontend/src/pages/Login/index.js
index 3a0e7864..8b9be1bf 100644
--- a/frontend/src/pages/Login/index.js
+++ b/frontend/src/pages/Login/index.js
@@ -16,11 +16,11 @@ import {
import { makeStyles } from "@material-ui/core/styles";
import { Visibility, VisibilityOff } from '@material-ui/icons';
+import { useTranslation } from "react-i18next";
import defaultLogo from '../../assets/logo.jpg';
import { AuthContext } from "../../context/Auth/AuthContext";
import toastError from "../../errors/toastError";
import api from "../../services/api";
-import { i18n } from "../../translate/i18n";
const PUBLIC_ASSET_PATH = '/assets/';
@@ -55,7 +55,7 @@ const useStyles = makeStyles((theme) => ({
const Login = () => {
const classes = useStyles();
-
+ const { t } = useTranslation();
const [user, setUser] = useState({ email: "", password: "" });
const [showPassword, setShowPassword] = useState(false);
const { handleLogin } = useContext(AuthContext);
@@ -144,7 +144,7 @@ const Login = () => {
- {i18n.t("login.title")}
+ {t("login.title")}