Register => Sign Up

This commit is contained in:
Sean Yesmunt 2020-08-21 00:24:02 -04:00
parent 764af3a5db
commit 7e35de3760
5 changed files with 9 additions and 10 deletions

View file

@ -918,7 +918,6 @@
"How much would you like to unlock?": "How much would you like to unlock?", "How much would you like to unlock?": "How much would you like to unlock?",
"A prudent choice": "A prudent choice", "A prudent choice": "A prudent choice",
"Join": "Join", "Join": "Join",
"Register": "Register",
"New History": "New History", "New History": "New History",
"Share on LinkedIn": "Share on LinkedIn", "Share on LinkedIn": "Share on LinkedIn",
"Embed this content": "Embed this content", "Embed this content": "Embed this content",
@ -950,7 +949,6 @@
"You have %count% blocked %channels%.": "You have %count% blocked %channels%.", "You have %count% blocked %channels%.": "You have %count% blocked %channels%.",
"Account Password": "Account Password", "Account Password": "Account Password",
"You do not currently have a password set.": "You do not currently have a password set.", "You do not currently have a password set.": "You do not currently have a password set.",
"Register with lbry.tv": "Register with lbry.tv",
"Enter Your lbry.tv Password": "Enter Your lbry.tv Password", "Enter Your lbry.tv Password": "Enter Your lbry.tv Password",
"Signing in as %email%": "Signing in as %email%", "Signing in as %email%": "Signing in as %email%",
"Forgot Password?": "Forgot Password?", "Forgot Password?": "Forgot Password?",
@ -1188,7 +1186,7 @@
"Choose A New Password": "Choose A New Password", "Choose A New Password": "Choose A New Password",
"Setting a new password for %email%": "Setting a new password for %email%", "Setting a new password for %email%": "Setting a new password for %email%",
"Update Password": "Update Password", "Update Password": "Update Password",
"We can't find that email. Did you mean to register?": "We can't find that email. Did you mean to register?", "We can't find that email. Did you mean to sign up?": "We can't find that email. Did you mean to sign up?",
"App Notifications": "App Notifications", "App Notifications": "App Notifications",
"Notification settings for the desktop app.": "Notification settings for the desktop app.", "Notification settings for the desktop app.": "Notification settings for the desktop app.",
"Get notified when an upload or channel is confirmed.": "Get notified when an upload or channel is confirmed.", "Get notified when an upload or channel is confirmed.": "Get notified when an upload or channel is confirmed.",

View file

@ -379,7 +379,7 @@ const Header = (props: Props) => {
{IS_WEB && !authenticated && ( {IS_WEB && !authenticated && (
<div className="header__auth-buttons"> <div className="header__auth-buttons">
<Button navigate={`/$/${PAGES.AUTH_SIGNIN}`} button="link" label={__('Sign In')} /> <Button navigate={`/$/${PAGES.AUTH_SIGNIN}`} button="link" label={__('Sign In')} />
<Button navigate={`/$/${PAGES.AUTH}`} button="primary" label={__('Register')} /> <Button navigate={`/$/${PAGES.AUTH}`} button="primary" label={__('Sign Up')} />
</div> </div>
)} )}
</div> </div>

View file

@ -174,7 +174,7 @@ function SideNavigation(props: Props) {
icon: ICONS.SIGN_IN, icon: ICONS.SIGN_IN,
}, },
{ {
label: 'Register', label: 'Sign Up',
navigate: `/$/${PAGES.AUTH}`, navigate: `/$/${PAGES.AUTH}`,
icon: ICONS.SIGN_UP, icon: ICONS.SIGN_UP,
}, },

View file

@ -1,5 +1,6 @@
// @flow // @flow
import * as PAGES from 'constants/pages'; import * as PAGES from 'constants/pages';
import { DOMAIN } from 'config';
import React, { useState } from 'react'; import React, { useState } from 'react';
import { FormField, Form } from 'component/common/form'; import { FormField, Form } from 'component/common/form';
import Button from 'component/button'; import Button from 'component/button';
@ -88,7 +89,7 @@ function UserEmailNew(props: Props) {
return ( return (
<div className="main__sign-up"> <div className="main__sign-up">
<Card <Card
title={__('Register with lbry.tv')} title={__('Sign Up with lbry.tv', { DOMAIN })}
// @if TARGET='app' // @if TARGET='app'
subtitle={__('An account with lbry.tv allows you to earn rewards and backup your data.')} subtitle={__('An account with lbry.tv allows you to earn rewards and backup your data.')}
// @endif // @endif
@ -146,7 +147,7 @@ function UserEmailNew(props: Props) {
<Button <Button
button="primary" button="primary"
type="submit" type="submit"
label={__('Register')} label={__('Sign Up')}
disabled={ disabled={
!email || !password || !valid || (!IS_WEB && !localShareUsageData && !shareUsageData) || isPending !email || !password || !valid || (!IS_WEB && !localShareUsageData && !shareUsageData) || isPending
} }

View file

@ -112,7 +112,7 @@ function UserEmailReturning(props: Props) {
label={__('Sign In')} label={__('Sign In')}
disabled={!email || !valid || isPending} disabled={!email || !valid || isPending}
/> />
<Button button="link" onClick={handleChangeToSignIn} label={__('Register')} /> <Button button="link" onClick={handleChangeToSignIn} label={__('Sign Up')} />
</div> </div>
</Form> </Form>
</div> </div>
@ -126,8 +126,8 @@ function UserEmailReturning(props: Props) {
<Nag <Nag
type="helpful" type="helpful"
relative relative
message={__("We can't find that email. Did you mean to register?")} message={__("We can't find that email. Did you mean to sign up?")}
actionText={__('Register')} actionText={__('Sign Up')}
/> />
)} )}
{!emailExistsFromUrl && !emailDoesNotExist && errorMessage && ( {!emailExistsFromUrl && !emailDoesNotExist && errorMessage && (