From 7137edad37214ce7de40c0332335dfc1c2d68d21 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 20 Sep 2023 14:41:34 -0500 Subject: [PATCH] Delete AuthLayout --- src/features/auth-layout/index.tsx | 78 ------------------------------ 1 file changed, 78 deletions(-) delete mode 100644 src/features/auth-layout/index.tsx diff --git a/src/features/auth-layout/index.tsx b/src/features/auth-layout/index.tsx deleted file mode 100644 index a2fa504dd..000000000 --- a/src/features/auth-layout/index.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import React from 'react'; -import { defineMessages, useIntl } from 'react-intl'; -import { Link, Redirect, Route, Switch, useHistory } from 'react-router-dom'; - -import LandingGradient from 'soapbox/components/landing-gradient'; -import SiteLogo from 'soapbox/components/site-logo'; -import { useOwnAccount, useInstance, useRegistrationStatus } from 'soapbox/hooks'; - -import { Button, Card, CardBody } from '../../components/ui'; -import LoginPage from '../auth-login/components/login-page'; -import ExternalLoginForm from '../external-login/components/external-login-form'; -import Footer from '../public-layout/components/footer'; - -const messages = defineMessages({ - register: { id: 'auth_layout.register', defaultMessage: 'Create an account' }, -}); - -const AuthLayout = () => { - const intl = useIntl(); - const history = useHistory(); - - const { account } = useOwnAccount(); - const instance = useInstance(); - const { isOpen } = useRegistrationStatus(); - const isLoginPage = history.location.pathname === '/login'; - - return ( -
- - -
-
-
-
- - - -
- - {(isLoginPage && isOpen) && ( -
- -
- )} -
- -
-
- - - - {/* If already logged in, redirect home. */} - {account && } - - - - - - -
-
- -
-
-
-
-
- ); -}; - -export default AuthLayout;