From df2c2288fbcbd60f888b84ed103acb5baaefa798 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 20 Sep 2023 14:26:08 -0500 Subject: [PATCH] Move invite signup into the UI --- src/containers/soapbox.tsx | 3 --- src/features/auth-layout/index.tsx | 2 -- src/features/register-invite/index.tsx | 24 ++++++++++-------------- src/features/ui/index.tsx | 2 ++ 4 files changed, 12 insertions(+), 19 deletions(-) diff --git a/src/containers/soapbox.tsx b/src/containers/soapbox.tsx index 38614bba6..fb5a15971 100644 --- a/src/containers/soapbox.tsx +++ b/src/containers/soapbox.tsx @@ -17,7 +17,6 @@ import GdprBanner from 'soapbox/components/gdpr-banner'; import Helmet from 'soapbox/components/helmet'; import LoadingScreen from 'soapbox/components/loading-screen'; import { StatProvider } from 'soapbox/contexts/stat-context'; -import AuthLayout from 'soapbox/features/auth-layout'; import EmbeddedStatus from 'soapbox/features/embedded-status'; import PublicLayout from 'soapbox/features/public-layout'; import BundleContainer from 'soapbox/features/ui/containers/bundle-container'; @@ -104,8 +103,6 @@ const SoapboxMount = () => { )} - - ); diff --git a/src/features/auth-layout/index.tsx b/src/features/auth-layout/index.tsx index fec9d4d3b..a2fa504dd 100644 --- a/src/features/auth-layout/index.tsx +++ b/src/features/auth-layout/index.tsx @@ -10,7 +10,6 @@ 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'; -import RegisterInvite from '../register-invite'; const messages = defineMessages({ register: { id: 'auth_layout.register', defaultMessage: 'Create an account' }, @@ -61,7 +60,6 @@ const AuthLayout = () => { - diff --git a/src/features/register-invite/index.tsx b/src/features/register-invite/index.tsx index 763749bc8..56e4c0278 100644 --- a/src/features/register-invite/index.tsx +++ b/src/features/register-invite/index.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; import { useParams } from 'react-router-dom'; -import { Stack, CardTitle, Text } from 'soapbox/components/ui'; +import { BigCard } from 'soapbox/components/big-card'; import RegistrationForm from 'soapbox/features/auth-login/components/registration-form'; import { useInstance } from 'soapbox/hooks'; @@ -23,21 +23,17 @@ const RegisterInvite: React.FC = () => { /> ); + const subtitle = ( + + ); + return ( - - - - - - - - - + - + ); }; diff --git a/src/features/ui/index.tsx b/src/features/ui/index.tsx index bcb4e1b79..a1e9b699b 100644 --- a/src/features/ui/index.tsx +++ b/src/features/ui/index.tsx @@ -137,6 +137,7 @@ import { LoginPage, PasswordReset, PasswordResetConfirm, + RegisterInvite, } from './util/async-components'; import GlobalHotkeys from './util/global-hotkeys'; import { WrappedRoute } from './util/react-router-helpers'; @@ -363,6 +364,7 @@ const SwitchingColumnsArea: React.FC = ({ children }) => +