diff --git a/app/soapbox/components/ui/card/card.tsx b/app/soapbox/components/ui/card/card.tsx index 350048a02a..9dd22bebe1 100644 --- a/app/soapbox/components/ui/card/card.tsx +++ b/app/soapbox/components/ui/card/card.tsx @@ -62,7 +62,7 @@ const CardHeader: React.FC = ({ children, backHref, onBackClick }): return ( - Back + {intl.formatMessage(messages.back)} ); }; diff --git a/app/soapbox/containers/soapbox.tsx b/app/soapbox/containers/soapbox.tsx index e14ffb9664..a3aa26a6ab 100644 --- a/app/soapbox/containers/soapbox.tsx +++ b/app/soapbox/containers/soapbox.tsx @@ -185,13 +185,14 @@ const SoapboxMount = () => { - + {(features.accountCreation && instance.registrations) && ( )} + diff --git a/app/soapbox/features/auth_layout/index.tsx b/app/soapbox/features/auth_layout/index.tsx index d32038b8b8..c694f173bf 100644 --- a/app/soapbox/features/auth_layout/index.tsx +++ b/app/soapbox/features/auth_layout/index.tsx @@ -12,6 +12,8 @@ import LoginPage from '../auth_login/components/login_page'; import PasswordReset from '../auth_login/components/password_reset'; import PasswordResetConfirm from '../auth_login/components/password_reset_confirm'; import RegistrationForm from '../auth_login/components/registration_form'; +import ExternalLoginForm from '../external_login/components/external-login-form'; +import RegisterInvite from '../register_invite'; import Verification from '../verification'; import EmailPassthru from '../verification/email_passthru'; @@ -40,16 +42,18 @@ const AuthLayout = () => {
-
+
+ + diff --git a/app/soapbox/features/register_invite/index.js b/app/soapbox/features/register_invite/index.js deleted file mode 100644 index 486647bd2c..0000000000 Binary files a/app/soapbox/features/register_invite/index.js and /dev/null differ diff --git a/app/soapbox/features/register_invite/index.tsx b/app/soapbox/features/register_invite/index.tsx new file mode 100644 index 0000000000..e312c1126d --- /dev/null +++ b/app/soapbox/features/register_invite/index.tsx @@ -0,0 +1,44 @@ +import React from 'react'; +import { FormattedMessage } from 'react-intl'; +import { useParams } from 'react-router-dom'; + +import { Stack, CardTitle, Text } from 'soapbox/components/ui'; +import RegistrationForm from 'soapbox/features/auth_login/components/registration_form'; +import { useAppSelector } from 'soapbox/hooks'; + +interface RegisterInviteParams { + token: string, +} + +/** Page to register with an invitation. */ +const RegisterInvite: React.FC = () => { + const { token } = useParams(); + const siteTitle = useAppSelector(state => state.instance.title); + + const title = ( + + ); + + return ( + + + + + + + + + + + + ); +}; + +export default RegisterInvite; diff --git a/app/soapbox/features/ui/index.tsx b/app/soapbox/features/ui/index.tsx index 91eda245fc..14e9e59747 100644 --- a/app/soapbox/features/ui/index.tsx +++ b/app/soapbox/features/ui/index.tsx @@ -76,7 +76,6 @@ import { // GroupRemovedAccounts, // GroupCreate, // GroupEdit, - ExternalLogin, Settings, MediaDisplay, EditProfile, @@ -108,7 +107,6 @@ import { NotificationsContainer, ModalContainer, ProfileHoverCard, - RegisterInvite, Share, NewStatus, IntentionalError, @@ -173,7 +171,6 @@ const SwitchingColumnsArea: React.FC = ({ children }) => { // Ex: use /login instead of /auth, but redirect /auth to /login return ( - @@ -290,8 +287,6 @@ const SwitchingColumnsArea: React.FC = ({ children }) => { {features.scheduledStatuses && } - - diff --git a/app/soapbox/pages/default_page.tsx b/app/soapbox/pages/default_page.tsx index 1bf2c27319..21c9026f5b 100644 --- a/app/soapbox/pages/default_page.tsx +++ b/app/soapbox/pages/default_page.tsx @@ -8,13 +8,11 @@ import { SignUpPanel, } from 'soapbox/features/ui/util/async-components'; import { useAppSelector, useFeatures } from 'soapbox/hooks'; -import { isStandalone } from 'soapbox/utils/state'; import { Layout } from '../components/ui'; const DefaultPage: React.FC = ({ children }) => { const me = useAppSelector(state => state.me); - const standalone = useAppSelector(isStandalone); const features = useFeatures(); return ( @@ -24,7 +22,7 @@ const DefaultPage: React.FC = ({ children }) => { - {!me && !standalone && ( + {!me && ( {Component => }