fix: create account button inline
This commit is contained in:
parent
7893512e2b
commit
b1549c6ae2
1 changed files with 15 additions and 11 deletions
|
@ -132,12 +132,21 @@ function Invited(props: Props) {
|
||||||
<Card
|
<Card
|
||||||
title={__(`You're invited!`)}
|
title={__(`You're invited!`)}
|
||||||
subtitle={
|
subtitle={
|
||||||
referrerIsChannel
|
<div>
|
||||||
? __(
|
<p>
|
||||||
`Content freedom and a present from %channel_name% are waiting for you. Create an account to claim it.`,
|
{referrerIsChannel
|
||||||
{ channel_name: referrerChannelName }
|
? __(`Content freedom and a present from %channel_name% are waiting for you. `, {
|
||||||
)
|
channel_name: referrerChannelName,
|
||||||
: __(`Content freedom and a present are waiting for you. Create an account to claim it.`)
|
})
|
||||||
|
: __(`Content freedom and a present are waiting for you. `)}
|
||||||
|
<Button
|
||||||
|
button="link"
|
||||||
|
label={hasVerifiedEmail ? __(`Finish verification `) : __(`Create an account `)}
|
||||||
|
navigate={`/$/${PAGES.AUTH}?redirect=/$/${PAGES.INVITE}/${referrer}`}
|
||||||
|
/>{' '}
|
||||||
|
to claim it.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
body={
|
body={
|
||||||
referrerIsChannel && (
|
referrerIsChannel && (
|
||||||
|
@ -149,11 +158,6 @@ function Invited(props: Props) {
|
||||||
}
|
}
|
||||||
actions={
|
actions={
|
||||||
<div className="card__actions">
|
<div className="card__actions">
|
||||||
<Button
|
|
||||||
button="primary"
|
|
||||||
label={hasVerifiedEmail ? __('Finish Account') : __('Create Account')}
|
|
||||||
navigate={`/$/${PAGES.AUTH}?redirect=/$/${PAGES.INVITE}/${referrer}`}
|
|
||||||
/>
|
|
||||||
<Button button="link" label={__('Skip')} onClick={handleDone} />
|
<Button button="link" label={__('Skip')} onClick={handleDone} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue