@@ -19,7 +19,6 @@ import { Icon, check } from '@wordpress/icons';
1919 * Internal dependencies
2020 */
2121import './editor.scss' ;
22- import { emailSend } from '../../../packages/icons' ;
2322
2423const getListCheckboxId = listId => {
2524 return 'newspack-reader-registration-list-checkbox-' + listId ;
@@ -28,7 +27,6 @@ const getListCheckboxId = listId => {
2827const editedStateOptions = [
2928 { label : __ ( 'Initial' , 'newspack-plugin' ) , value : 'initial' } ,
3029 { label : __ ( 'Registration Success' , 'newspack-plugin' ) , value : 'registration' } ,
31- { label : __ ( 'Login Success' , 'newspack-plugin' ) , value : 'login' } ,
3230] ;
3331export default function ReaderRegistrationEdit ( {
3432 setAttributes,
@@ -42,8 +40,6 @@ export default function ReaderRegistrationEdit( {
4240 displayListDescription,
4341 hideSubscriptionInput,
4442 newsletterLabel,
45- signInLabel,
46- signedInLabel,
4743 lists,
4844 listsCheckboxes,
4945 } ,
@@ -292,7 +288,7 @@ export default function ReaderRegistrationEdit( {
292288 __html : newspack_blocks . google_logo_svg ,
293289 } }
294290 />
295- { __ ( 'Sign in with Google' , 'newspack-plugin' ) }
291+ { __ ( 'Continue with Google' , 'newspack-plugin' ) }
296292 </ button >
297293 < div className = "newspack-ui__word-divider" > { __ ( 'Or' , 'newspack-plugin' ) } </ div >
298294 </ div >
@@ -303,7 +299,7 @@ export default function ReaderRegistrationEdit( {
303299 < button type = "submit" className = "newspack-ui__button newspack-ui__button--primary" >
304300 < RichText
305301 onChange = { value => setAttributes ( { label : value } ) }
306- placeholder = { __ ( 'Sign up ' , 'newspack-plugin' ) }
302+ placeholder = { __ ( 'Continue ' , 'newspack-plugin' ) }
307303 value = { label }
308304 allowedFormats = { [ ] }
309305 tagName = "span"
@@ -314,21 +310,6 @@ export default function ReaderRegistrationEdit( {
314310 </ div >
315311 </ div >
316312 </ div >
317- < div className = "newspack-registration__have-account" >
318- < a
319- href = "/my-account"
320- onClick = { ev => ev . preventDefault ( ) }
321- className = "newspack-ui__button newspack-ui__button--ghost"
322- >
323- < RichText
324- onChange = { value => setAttributes ( { signInLabel : value } ) }
325- placeholder = { __ ( 'Sign in to an existing account' , 'newspack-plugin' ) }
326- value = { signInLabel }
327- allowedFormats = { [ ] }
328- tagName = "span"
329- />
330- </ a >
331- </ div >
332313 < div className = "newspack-registration__help-text" >
333314 < RichText
334315 onChange = { value => setAttributes ( { privacyLabel : value } ) }
@@ -343,31 +324,14 @@ export default function ReaderRegistrationEdit( {
343324 ) }
344325 { editedState === 'registration' && (
345326 < div className = "newspack-registration newspack-ui" >
346- < div className = "newspack-ui__box newspack-ui__box--success newspack-ui__box--text-center" >
327+ < div className = "newspack-ui__box newspack-ui__box--success newspack-ui__box--x-large newspack-ui__box-- text-center" >
347328 < span className = "newspack-ui__icon newspack-ui__icon--success" >
348329 < Icon icon = { check } />
349330 </ span >
350331 < div { ...innerBlocksProps } />
351332 </ div >
352333 </ div >
353334 ) }
354- { editedState === 'login' && (
355- < div className = "newspack-registration newspack-ui" >
356- < div className = "newspack-ui__box newspack-ui__box--success newspack-ui__box--text-center" >
357- < span className = "newspack-ui__icon newspack-ui__icon--success" >
358- < Icon icon = { emailSend } />
359- </ span >
360- < RichText
361- align = "center"
362- onChange = { value => setAttributes ( { signedInLabel : value } ) }
363- placeholder = { __ ( 'Logged in message…' , 'newspack-plugin' ) }
364- value = { signedInLabel }
365- allowedFormats = { [ ] }
366- tagName = "p"
367- />
368- </ div >
369- </ div >
370- ) }
371335 </ div >
372336 </ >
373337 ) ;
0 commit comments