mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
refactor: clean up login form and logo component
- Removed the "signing_in" text from the login form for a more streamlined user experience. - Updated the Logo component to include "select-none" class for improved styling and user interaction.
This commit is contained in:
parent
0b8bee0076
commit
b7130100aa
7 changed files with 7 additions and 12 deletions
|
|
@ -6,7 +6,6 @@ import Link from "next/link";
|
|||
import { useRouter } from "next/navigation";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { useEffect, useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { loginMutationAtom } from "@/atoms/auth/auth-mutation.atoms";
|
||||
import { Spinner } from "@/components/ui/spinner";
|
||||
import { getAuthErrorDetails, isNetworkError } from "@/lib/auth-errors";
|
||||
|
|
@ -215,10 +214,7 @@ export function LocalLoginForm() {
|
|||
className="w-full rounded-md bg-blue-600 px-4 py-1.5 md:py-2 text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all text-sm md:text-base flex items-center justify-center gap-2"
|
||||
>
|
||||
{isLoggingIn ? (
|
||||
<>
|
||||
<Spinner size="sm" className="text-white" />
|
||||
<span>{t("signing_in")}</span>
|
||||
</>
|
||||
<Spinner size="sm" className="text-white" />
|
||||
) : (
|
||||
t("sign_in")
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export const Logo = ({
|
|||
const image = (
|
||||
<Image
|
||||
src="/icon-128.svg"
|
||||
className={cn("dark:invert", className)}
|
||||
className={cn("select-none dark:invert", className)}
|
||||
alt="logo"
|
||||
width={128}
|
||||
height={128}
|
||||
|
|
@ -25,5 +25,9 @@ export const Logo = ({
|
|||
return image;
|
||||
}
|
||||
|
||||
return <Link href="/">{image}</Link>;
|
||||
return (
|
||||
<Link href="/" className="select-none">
|
||||
{image}
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
"hide_password": "Hide password",
|
||||
"remember_me": "Remember Me",
|
||||
"sign_in": "Sign In",
|
||||
"signing_in": "Signing in",
|
||||
"sign_up": "Sign Up",
|
||||
"sign_in_with": "Sign in with {provider}",
|
||||
"dont_have_account": "Don't have an account?",
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
"hide_password": "Ocultar contraseña",
|
||||
"remember_me": "Recuérdame",
|
||||
"sign_in": "Iniciar sesión",
|
||||
"signing_in": "Iniciando sesión",
|
||||
"sign_up": "Registrarse",
|
||||
"sign_in_with": "Iniciar sesión con {provider}",
|
||||
"dont_have_account": "¿No tienes una cuenta?",
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
"hide_password": "पासवर्ड छुपाएं",
|
||||
"remember_me": "मुझे याद रखें",
|
||||
"sign_in": "साइन इन करें",
|
||||
"signing_in": "साइन इन हो रहा है",
|
||||
"sign_up": "साइन अप करें",
|
||||
"sign_in_with": "{provider} से साइन इन करें",
|
||||
"dont_have_account": "खाता नहीं है?",
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
"hide_password": "Ocultar senha",
|
||||
"remember_me": "Lembrar de mim",
|
||||
"sign_in": "Entrar",
|
||||
"signing_in": "Entrando",
|
||||
"sign_up": "Cadastrar",
|
||||
"sign_in_with": "Entrar com {provider}",
|
||||
"dont_have_account": "Não tem uma conta?",
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
"hide_password": "隐藏密码",
|
||||
"remember_me": "记住我",
|
||||
"sign_in": "登录",
|
||||
"signing_in": "正在登录",
|
||||
"sign_up": "注册",
|
||||
"sign_in_with": "使用 {provider} 登录",
|
||||
"dont_have_account": "还没有账户?",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue