Updated Introduction navigation button title

• Updated:
- Introduction navigation button title
This commit is contained in:
mgabdev 2020-07-14 23:20:26 -05:00
parent 23a32574a4
commit 8c3d4a352a

View File

@ -374,6 +374,8 @@ class Introduction extends ImmutablePureComponent {
) )
}) })
const nextTitle = currentIndex === 3 ? 'Finish' : 'Next'
return ( return (
<div className={[_s.default, _s.width100PC, _s.heightMax80VH].join(' ')}> <div className={[_s.default, _s.width100PC, _s.heightMax80VH].join(' ')}>
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter, _s.justifyContentCenter, _s.borderBottom1PX, _s.borderColorSecondary, _s.height53PX, _s.px15].join(' ')}> <div className={[_s.default, _s.flexRow, _s.alignItemsCenter, _s.justifyContentCenter, _s.borderBottom1PX, _s.borderColorSecondary, _s.height53PX, _s.px15].join(' ')}>
@ -399,7 +401,7 @@ class Introduction extends ImmutablePureComponent {
currentIndex === 3 && currentIndex === 3 &&
<Fragment> <Fragment>
<Responsive min={BREAKPOINT_EXTRA_SMALL}> <Responsive min={BREAKPOINT_EXTRA_SMALL}>
<Text color='white' className={_s.px5}>Finish</Text> <Text color='white' className={_s.px5}>{nextTitle}</Text>
</Responsive> </Responsive>
<Responsive max={BREAKPOINT_EXTRA_SMALL}> <Responsive max={BREAKPOINT_EXTRA_SMALL}>
<Icon id='check' size='14px' className={_s.fillWhite} /> <Icon id='check' size='14px' className={_s.fillWhite} />
@ -448,14 +450,15 @@ class Introduction extends ImmutablePureComponent {
{pagination} {pagination}
</ul> </ul>
<Button <Button
isText
href={currentIndex === 3 ? '/home' : undefined} href={currentIndex === 3 ? '/home' : undefined}
className={[_s.default, _s.width50PX, _s.mlAuto, _s.opacity05].join(' ')} className={[_s.default, _s.width50PX, _s.height100PC, _s.justifyContentCenter, _s.pr0, _s.pl0, _s.mlAuto, _s.opacity05].join(' ')}
onClick={this.handleNext} onClick={this.handleNext}
icon={currentIndex === 3 ? 'check' : 'arrow-right'}
backgroundColor='none' backgroundColor='none'
color='secondary' color='secondary'
iconSize='20px' >
/> <Text color='inherit' align='right'>{nextTitle}</Text>
</Button>
</div> </div>
</div> </div>
) )