Merge pull request #293 from getmaxun/ui
chore: login translation switcher
This commit is contained in:
@@ -46,18 +46,15 @@ const Login = () => {
|
||||
password,
|
||||
});
|
||||
dispatch({ type: "LOGIN", payload: data });
|
||||
notify("success", t('login.welcome_notification')); // Translated notification
|
||||
notify("success", t('login.welcome_notification'));
|
||||
window.localStorage.setItem("user", JSON.stringify(data));
|
||||
navigate("/");
|
||||
} catch (err) {
|
||||
notify("error", t('login.error_notification')); // Translated error
|
||||
notify("error", t('login.error_notification'));
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
// Language switcher function
|
||||
|
||||
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@@ -69,8 +66,6 @@ const Login = () => {
|
||||
padding: 4,
|
||||
}}
|
||||
>
|
||||
{/* Language Switcher Buttons */}
|
||||
|
||||
<Box
|
||||
component="form"
|
||||
onSubmit={submitForm}
|
||||
|
||||
Reference in New Issue
Block a user