Skip to content

Commit 799fb91

Browse files
tweaks on the modal tour
1 parent 2332a77 commit 799fb91

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/components/modal-tour/index.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const STEPS = [
2929
const element = document.querySelector( '.ugb-modal-design-library__enable-background .components-form-toggle__input' )
3030
element?.click()
3131
},
32-
showNext: false,
32+
// showNext: false,
3333
},
3434
{
3535
title: __( 'Patterns and Full-Pages', i18n ),
@@ -209,7 +209,7 @@ const ModalTour = props => {
209209
variant="primary"
210210
onClick={ () => {
211211
if ( currentStep === steps.length - 1 ) {
212-
props.onClose()
212+
onClose()
213213
} else {
214214
setCurrentStep( currentStep + 1 )
215215
setTimeout( () => {
@@ -218,9 +218,15 @@ const ModalTour = props => {
218218
}
219219
} }
220220
>
221-
{ currentStep === steps.length - 1 ? __( 'Finish', i18n ) : __( 'Next', i18n ) }
222-
 
223-
<Icon icon={ arrowRight } size={ 20 } />
221+
{ currentStep === steps.length - 1 ? (
222+
__( 'Finish', i18n )
223+
) : (
224+
<>
225+
{ __( 'Next', i18n ) }
226+
&nbsp;
227+
<Icon icon={ arrowRight } size={ 20 } />
228+
</>
229+
) }
224230
</Button>
225231
) }
226232
</Flex>

0 commit comments

Comments
 (0)