From 24eb0205669d667816839b2ff53915059b23c232 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Tue, 4 Mar 2025 10:12:00 -0700 Subject: [PATCH] update some provider info --- .../app/auth/_LoginComponents/LoginForm.tsx | 25 +++++++-------- web/src/app/auth/login/page.tsx | 3 +- .../app/auth/reset-password-email/page.tsx | 2 +- web/src/app/auth/reset-password/page.tsx | 2 +- .../SidebarUserFooter/SidebarUserFooter.tsx | 2 +- .../Chats/NewChatProvider/NewChatProvider.tsx | 1 - web/src/hooks/useSupabaseAuthMethods/index.ts | 2 ++ .../hooks/useSupabaseAuthMethods/signOut.ts | 32 +++++++++++++++++++ .../useBusterSupabaseAuthMethods.ts | 27 ---------------- web/src/layouts/AppAssetCheckLayout.tsx | 2 +- 10 files changed, 51 insertions(+), 47 deletions(-) create mode 100644 web/src/hooks/useSupabaseAuthMethods/index.ts create mode 100644 web/src/hooks/useSupabaseAuthMethods/signOut.ts rename web/src/hooks/{ => useSupabaseAuthMethods}/useBusterSupabaseAuthMethods.ts (89%) diff --git a/web/src/app/auth/_LoginComponents/LoginForm.tsx b/web/src/app/auth/_LoginComponents/LoginForm.tsx index 52575bc92..d9ccc4b96 100644 --- a/web/src/app/auth/_LoginComponents/LoginForm.tsx +++ b/web/src/app/auth/_LoginComponents/LoginForm.tsx @@ -1,7 +1,9 @@ 'use client'; import React, { useMemo, useState } from 'react'; -import { Button, Divider, Input, Result } from 'antd'; +import { Result } from 'antd'; +import { Input } from '@/components/ui/inputs'; +import { Button } from '@/components/ui/buttons'; import { User } from '@supabase/auth-js'; import { inputHasText, isValidEmail } from '@/lib'; import { useKeyPress, useMemoizedFn } from 'ahooks'; @@ -11,7 +13,7 @@ import { BsGithub, BsGoogle, BsMicrosoft } from 'react-icons/bs'; import { createStyles } from 'antd-style'; import { Title, Text } from '@/components/ui/typography'; import Cookies from 'js-cookie'; -import { useBusterSupabaseAuthMethods } from '@/hooks/useBusterSupabaseAuthMethods'; +import { useBusterSupabaseAuthMethods } from '@/hooks/useSupabaseAuthMethods/useBusterSupabaseAuthMethods'; import { PolicyCheck } from './PolicyCheck'; import { rustErrorHandler } from '@/api/buster_rest/errors'; @@ -188,8 +190,6 @@ const LoginOptions: React.FC<{ setErrorMessages, signUpFlow }) => { - const { styles, cx } = useStyles(); - const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [password2, setPassword2] = useState(''); @@ -232,8 +232,7 @@ const LoginOptions: React.FC<{ }); }}> - or +
@@ -361,7 +358,7 @@ const SignUpSuccess: React.FC<{ extra={[