simplify
This commit is contained in:
parent
6e511fd85c
commit
26235ee39a
1 changed files with 9 additions and 12 deletions
|
@ -26,30 +26,21 @@ const ModalFirstSubscription = (props: Props) => {
|
||||||
<Modal type="custom" isOpen contentLabel="Subscriptions 101" title={__('Subscriptions 101')}>
|
<Modal type="custom" isOpen contentLabel="Subscriptions 101" title={__('Subscriptions 101')}>
|
||||||
<div className="section__subtitle">
|
<div className="section__subtitle">
|
||||||
<p>{__('Awesome! You just subscribed to your first channel.')}{' '}
|
<p>{__('Awesome! You just subscribed to your first channel.')}{' '}
|
||||||
{/* @if TARGET='web' */}
|
|
||||||
{__('You will receive notifications related to new content.')}
|
|
||||||
{/* @endif */}
|
|
||||||
{/* @if TARGET='app' */}
|
|
||||||
{ user && user.primary_email ? (
|
{ user && user.primary_email ? (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{__('You will receive notifications related to new content.')}
|
{__('You will receive notifications related to new content.')}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
) : (
|
) : (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Button button="link" onClick={() => {
|
{ __('Sign in with lbry.tv to receive notifications about new content.')}
|
||||||
closeModal()
|
|
||||||
history.push(`/$/${PAGES.AUTH}?redirect=${pathname}`);
|
|
||||||
}} label={__('Sign in')} />{' '}
|
|
||||||
{ __('with lbry.tv to receive notifications related to new content.')}
|
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
{/* @endif */}
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
<Button button="primary" onClick={closeModal} label={__('Got it')} />
|
<Button button="primary" onClick={closeModal} label={__('Got it')} />
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{user && user.primary_email && (
|
{user && user.primary_email ? (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Button
|
<Button
|
||||||
button="link"
|
button="link"
|
||||||
|
@ -57,9 +48,15 @@ const ModalFirstSubscription = (props: Props) => {
|
||||||
label={__('Update email preferences')}
|
label={__('Update email preferences')}
|
||||||
/>
|
/>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
) : (
|
||||||
|
<React.Fragment>
|
||||||
|
<Button button="link" onClick={() => {
|
||||||
|
closeModal()
|
||||||
|
history.push(`/$/${PAGES.AUTH}?redirect=${pathname}`);
|
||||||
|
}} label={__('Sign in')} />
|
||||||
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue