Skip to content

Commit

Permalink
Merge pull request #78 from suisin-deriv/suisin/fix_resendcode_text_t…
Browse files Browse the repository at this point in the history
…o_use_button

chore: add resend code Button
  • Loading branch information
suisin-deriv committed Apr 23, 2024
2 parents 0907efd + c2a9e42 commit 78887e9
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef } from 'react';
import PhoneVerificationCard from './phone-verification-card';
import { CaptionText, Text } from '@deriv-com/quill-ui';
import { Button, CaptionText, Text } from '@deriv-com/quill-ui';
import { Localize, localize } from '@deriv/translations';
import { observer, useStore } from '@deriv/stores';
import { Input } from '@deriv/components';
Expand Down Expand Up @@ -54,9 +54,11 @@ const ConfirmYourEmail = observer(() => {
</div>
<div className='phone-verification__card--email-verification-otp-container'>
<Input id='otp_code' type='text' name='otp_code' label={localize('OTP code')} data-lpignore='true' />
<CaptionText bold underlined onClick={resendCode}>
<Localize i18n_default_text='{{resendCode}}' values={{ resendCode: resendCodeText.current }} />
</CaptionText>
<Button variant='tertiary' onClick={resendCode} disabled={startTimer} color='black'>
<CaptionText bold underlined>
<Localize i18n_default_text='{{resendCode}}' values={{ resendCode: resendCodeText.current }} />
</CaptionText>
</Button>
</div>
</PhoneVerificationCard>
);
Expand Down

0 comments on commit 78887e9

Please sign in to comment.