kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Remove unnecessary line
rodzic
af16e48ce3
commit
6a76bca7ff
|
@ -7,11 +7,9 @@ import Stack from 'soapbox/components/ui/stack.tsx';
|
||||||
import Text from 'soapbox/components/ui/text.tsx';
|
import Text from 'soapbox/components/ui/text.tsx';
|
||||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch.ts';
|
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch.ts';
|
||||||
import { useAppSelector } from 'soapbox/hooks/useAppSelector.ts';
|
import { useAppSelector } from 'soapbox/hooks/useAppSelector.ts';
|
||||||
import { useFeatures } from 'soapbox/hooks/useFeatures.ts';
|
|
||||||
import { useRegistrationStatus } from 'soapbox/hooks/useRegistrationStatus.ts';
|
import { useRegistrationStatus } from 'soapbox/hooks/useRegistrationStatus.ts';
|
||||||
|
|
||||||
const SignUpPanel = () => {
|
const SignUpPanel = () => {
|
||||||
const { nostrSignup } = useFeatures();
|
|
||||||
const { isOpen } = useRegistrationStatus();
|
const { isOpen } = useRegistrationStatus();
|
||||||
const me = useAppSelector((state) => state.me);
|
const me = useAppSelector((state) => state.me);
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
@ -38,8 +36,7 @@ const SignUpPanel = () => {
|
||||||
<HStack space={2}>
|
<HStack space={2}>
|
||||||
<Button
|
<Button
|
||||||
theme='tertiary'
|
theme='tertiary'
|
||||||
onClick={nostrSignup ? () => dispatch(openModal('NOSTR_LOGIN')) : undefined}
|
onClick={() => dispatch(openModal('NOSTR_LOGIN'))}
|
||||||
to={nostrSignup ? undefined : '/login'}
|
|
||||||
block
|
block
|
||||||
>
|
>
|
||||||
<FormattedMessage id='account.login' defaultMessage='Log in' />
|
<FormattedMessage id='account.login' defaultMessage='Log in' />
|
||||||
|
@ -47,8 +44,7 @@ const SignUpPanel = () => {
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
theme='primary'
|
theme='primary'
|
||||||
onClick={nostrSignup ? () => dispatch(openModal('NOSTR_SIGNUP')) : undefined}
|
onClick={() => dispatch(openModal('NOSTR_SIGNUP'))}
|
||||||
to={nostrSignup ? undefined : '/signup'}
|
|
||||||
block
|
block
|
||||||
>
|
>
|
||||||
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
||||||
|
|
|
@ -1028,6 +1028,7 @@
|
||||||
"login_external.errors.instance_fail": "The instance returned an error.",
|
"login_external.errors.instance_fail": "The instance returned an error.",
|
||||||
"login_external.errors.network_fail": "Connection failed. Is a browser extension blocking it?",
|
"login_external.errors.network_fail": "Connection failed. Is a browser extension blocking it?",
|
||||||
"login_form.header": "Sign In",
|
"login_form.header": "Sign In",
|
||||||
|
"login_panel.subtitle": "Dive into the best of social media!",
|
||||||
"manage.zap_split.add": "Add",
|
"manage.zap_split.add": "Add",
|
||||||
"manage.zap_split.add_new_account": "Add New Account",
|
"manage.zap_split.add_new_account": "Add New Account",
|
||||||
"manage.zap_split.fail_request": "Failed to update fees.",
|
"manage.zap_split.fail_request": "Failed to update fees.",
|
||||||
|
@ -1466,9 +1467,8 @@
|
||||||
"settings.sessions": "Active sessions",
|
"settings.sessions": "Active sessions",
|
||||||
"settings.settings": "Settings",
|
"settings.settings": "Settings",
|
||||||
"shared.tos": "Terms of Service",
|
"shared.tos": "Terms of Service",
|
||||||
"signup_panel.subtitle": "Sign up now to discuss what's happening.",
|
|
||||||
"login_panel.subtitle": "Dive into the best of social media!",
|
|
||||||
"signup_panel.greeting_title": "{greeting}! Welcome aboard!",
|
"signup_panel.greeting_title": "{greeting}! Welcome aboard!",
|
||||||
|
"signup_panel.subtitle": "Sign up now to discuss what's happening.",
|
||||||
"signup_panel.title": "New to {site_title}?",
|
"signup_panel.title": "New to {site_title}?",
|
||||||
"site_preview.preview": "Preview",
|
"site_preview.preview": "Preview",
|
||||||
"soapbox_config.authenticated_profile_hint": "Users must be logged-in to view replies and media on user profiles.",
|
"soapbox_config.authenticated_profile_hint": "Users must be logged-in to view replies and media on user profiles.",
|
||||||
|
|
Ładowanie…
Reference in New Issue