Explorar el Código

chore: remove Facebook login mentions and UI

unknown hace 2 días
padre
commit
6fd066d619
Se han modificado 2 ficheros con 2 adiciones y 9 borrados
  1. 1 1
      backend/schemas.py
  2. 1 8
      src/pages/Auth.vue

+ 1 - 1
backend/schemas.py

@@ -191,7 +191,7 @@ class Token(BaseModel):
 from typing import Optional, List, Any
 
 class SocialLogin(BaseModel):
-    provider: str # 'google' or 'facebook'
+    provider: str # 'google'
     token: str
     email: Any = None
     first_name: Any = None

+ 1 - 8
src/pages/Auth.vue

@@ -188,15 +188,8 @@
                 <span class="bg-card/40 px-2 text-muted-foreground backdrop-blur-md">{{ t("auth.orContinueWith") }}</span>
               </div>
             </div>
-            <div class="grid grid-cols-1 gap-3">
+            <div class="flex flex-col gap-3">
               <div id="google-login-btn" class="w-full flex justify-center"></div>
-              <button type="button" @click="toast.info(t('auth.toasts.socialSoon', { provider: 'Facebook' }))"
-                class="flex items-center justify-center gap-2 bg-background/50 hover:bg-background/80 border border-border/50 rounded-xl py-2.5 px-4 transition-all hover:scale-[1.02] active:scale-[0.98]">
-                <svg class="w-4 h-4 fill-[#1877F2]" viewBox="0 0 24 24">
-                  <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
-                </svg>
-                <span class="text-xs font-medium">Facebook</span>
-              </button>
             </div>
           </div>
         </form>