From 19f5885e622a0887baba9b55752db769578b6f33 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Wed, 14 Feb 2024 14:56:18 +0600 Subject: [PATCH] refactor: remove dead code --- src/components/AuthenticationFlow/AuthenticationForm.tsx | 3 ++- src/pages/login.astro | 5 ----- src/pages/signup.astro | 5 ----- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/AuthenticationFlow/AuthenticationForm.tsx b/src/components/AuthenticationFlow/AuthenticationForm.tsx index 2667a141d..3a6b5ecb6 100644 --- a/src/components/AuthenticationFlow/AuthenticationForm.tsx +++ b/src/components/AuthenticationFlow/AuthenticationForm.tsx @@ -1,11 +1,12 @@ +import { useState } from 'react'; import { GitHubButton } from './GitHubButton'; import { GoogleButton } from './GoogleButton'; import { LinkedInButton } from './LinkedInButton'; import { EmailLoginForm } from './EmailLoginForm'; -import { useState } from 'react'; export function AuthenticationForm() { const [isDisabled, setIsDisabled] = useState(false); + return ( <>
diff --git a/src/pages/login.astro b/src/pages/login.astro index cfa6080c3..d2a5faa2b 100644 --- a/src/pages/login.astro +++ b/src/pages/login.astro @@ -1,10 +1,5 @@ --- import { AuthenticationForm } from '../components/AuthenticationFlow/AuthenticationForm'; -import Divider from '../components/AuthenticationFlow/Divider.astro'; -import { EmailLoginForm } from '../components/AuthenticationFlow/EmailLoginForm'; -import { GitHubButton } from '../components/AuthenticationFlow/GitHubButton'; -import { GoogleButton } from '../components/AuthenticationFlow/GoogleButton'; -import { LinkedInButton } from '../components/AuthenticationFlow/LinkedInButton'; import AccountLayout from '../layouts/AccountLayout.astro'; --- diff --git a/src/pages/signup.astro b/src/pages/signup.astro index 268dff354..fb14c97d0 100644 --- a/src/pages/signup.astro +++ b/src/pages/signup.astro @@ -1,10 +1,5 @@ --- import { AuthenticationForm } from '../components/AuthenticationFlow/AuthenticationForm'; -import Divider from '../components/AuthenticationFlow/Divider.astro'; -import { EmailSignupForm } from '../components/AuthenticationFlow/EmailSignupForm'; -import { GitHubButton } from '../components/AuthenticationFlow/GitHubButton'; -import { GoogleButton } from '../components/AuthenticationFlow/GoogleButton'; -import { LinkedInButton } from '../components/AuthenticationFlow/LinkedInButton'; import AccountLayout from '../layouts/AccountLayout.astro'; ---