('login');
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
@@ -13181,37 +13161,8 @@ function LoginPage({ onLogin }: { onLogin: (user: AuthUser) => void }) {
}
};
- const socialButtons = (
- <>
-
- lub kontynuuj z
-
-
-
-
-
-
-
- Twoje dane są u nas bezpieczne. Stosujemy szyfrowanie SSL.
- >
+ const securityNote = (
+ Twoje dane są u nas bezpieczne. Stosujemy szyfrowanie SSL.
);
return (
@@ -13326,7 +13277,7 @@ function LoginPage({ onLogin }: { onLogin: (user: AuthUser) => void }) {
{submitting ? 'Przetwarzanie…' : 'Zaloguj się'}
- {socialButtons}
+ {securityNote}
)}
@@ -13493,7 +13444,7 @@ function LoginPage({ onLogin }: { onLogin: (user: AuthUser) => void }) {
{submitting ? 'Przetwarzanie…' : 'Zarejestruj się'}
- {socialButtons}
+ {securityNote}
)}
@@ -13650,7 +13601,7 @@ function LoginPage({ onLogin }: { onLogin: (user: AuthUser) => void }) {
{submitting ? 'Przetwarzanie…' : 'Zarejestruj firmę'}
- {socialButtons}
+ {securityNote}
)}
diff --git a/frontend/src/auth.tsx b/frontend/src/auth.tsx
index f9ead1b..412fd66 100644
--- a/frontend/src/auth.tsx
+++ b/frontend/src/auth.tsx
@@ -104,7 +104,6 @@ type AuthContextValue = {
loading: boolean;
login: (email: string, password: string) => Promise;
register: (email: string, password: string, fullName: string, details?: RegisterDetails) => Promise;
- socialLogin: (provider: Exclude) => Promise;
activateAccount: (token: string) => Promise;
resendActivation: (email: string) => Promise;
forgotPassword: (email: string) => Promise;
@@ -266,15 +265,6 @@ export function AuthProvider({ children }: { children: ReactNode }) {
[],
);
- const socialLogin = useCallback(
- async (provider: Exclude) =>
- applyAuth(await apiFetch('/auth/social', {
- method: 'POST',
- body: JSON.stringify({ provider }),
- })),
- [applyAuth],
- );
-
const activateAccount = useCallback(async (token: string) => {
await apiFetch('/auth/activate', { method: 'POST', body: JSON.stringify({ token }) });
}, []);
@@ -372,11 +362,11 @@ export function AuthProvider({ children }: { children: ReactNode }) {
const value = useMemo(
() => ({
- user, token, loading, login, register, socialLogin,
+ user, token, loading, login, register,
activateAccount, resendActivation, forgotPassword, resetPassword, verifyPhone, resendPhoneOtp,
updateProfile, changePassword, verifyPassword, passwordCooldown, deleteAccount, loadSettings, loadSearchPreferences, saveSettings, refreshUser, logout,
}),
- [user, token, loading, login, register, socialLogin,
+ [user, token, loading, login, register,
activateAccount, resendActivation, forgotPassword, resetPassword, verifyPhone, resendPhoneOtp,
updateProfile, changePassword, verifyPassword, passwordCooldown, deleteAccount, loadSettings, loadSearchPreferences, saveSettings, refreshUser, logout],
);
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index 2eba440..c280b1e 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -13604,67 +13604,6 @@ a.city-card:hover {
width: 100%;
}
-.login-divider {
- align-items: center;
- color: #6e7d92;
- display: grid;
- font-size: 13px;
- font-weight: 850;
- grid-template-columns: 1fr auto 1fr;
- gap: 9px;
-}
-
-.login-divider::before,
-.login-divider::after {
- background: #dfe5ed;
- content: "";
- height: 1px;
-}
-
-.social-login-row {
- display: flex;
- gap: 10px;
-}
-
-.social-login {
- align-items: center;
- background: #ffffff;
- border: 1px solid #dce4ec;
- border-radius: 10px;
- color: #24344b;
- cursor: pointer;
- display: flex;
- flex: 1 1 0;
- font-size: 14px;
- font-weight: 800;
- gap: 9px;
- height: 46px;
- justify-content: center;
- min-width: 0;
- transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
-}
-
-.social-login:hover:not(:disabled) {
- background: #f7f9fc;
- border-color: #c4d2e2;
- box-shadow: 0 2px 10px rgba(20, 34, 58, 0.07);
-}
-
-.social-login:disabled {
- cursor: default;
- opacity: 0.6;
-}
-
-.social-login-icon {
- flex: 0 0 auto;
- height: 18px;
- width: 18px;
-}
-
-@media (max-width: 400px) {
- .social-login-row { flex-direction: column; }
-}
-
.login-security-note {
align-items: center;
color: #7a8798;
@@ -14018,8 +13957,6 @@ a.city-card:hover {
.remember-me,
.forgot-password,
.login-submit,
- .social-login,
- .login-divider,
.login-security-note {
font-size: 13px;
}
@@ -14035,8 +13972,7 @@ a.city-card:hover {
}
.login-field input,
- .login-submit,
- .social-login {
+ .login-submit {
height: 44px;
}