Skip to content

Commit 6043a33

Browse files
added arrows
1 parent 4004f3f commit 6043a33

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/modal-tour/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import {
55
Modal, Flex, Button,
66
} from '@wordpress/components'
77
import { __ } from '@wordpress/i18n'
8+
import {
9+
Icon, arrowRight, arrowLeft,
10+
} from '@wordpress/icons'
811
import {
912
useEffect, useState, useCallback, useRef, useMemo,
1013
} from '@wordpress/element'
@@ -166,15 +169,17 @@ const ModalTour = props => {
166169
/>
167170
{ currentStep > 0 && (
168171
<Button
169-
variant="secondary"
172+
variant="tertiary"
170173
onClick={ () => {
171174
setCurrentStep( currentStep - 1 )
172175
setTimeout( () => {
173176
setForceRefresh( forceRefresh + 1 )
174177
}, 50 )
175178
} }
176179
>
177-
{ __( 'Previous', i18n ) }
180+
<Icon icon={ arrowLeft } size={ 20 } />
181+
&nbsp;
182+
{ __( 'Back', i18n ) }
178183
</Button>
179184
) }
180185
{ showNext && (
@@ -192,6 +197,8 @@ const ModalTour = props => {
192197
} }
193198
>
194199
{ currentStep === steps.length - 1 ? __( 'Finish', i18n ) : __( 'Next', i18n ) }
200+
&nbsp;
201+
<Icon icon={ arrowRight } size={ 20 } />
195202
</Button>
196203
) }
197204
</Flex>

0 commit comments

Comments
 (0)