feat: otp resend timer and logic added

This commit is contained in:
مهرزاد قدرتی
2025-07-28 13:02:24 +03:30
parent 45371337b7
commit 3f7242742e
8 changed files with 143 additions and 104 deletions

View File

@@ -1,8 +1,9 @@
import { Box, Button, TextField, Typography } from '@mui/material';
import { Box, Button, Paper, TextField, Typography } from '@mui/material';
import parsePhoneNumberFromString from 'libphonenumber-js';
import React, { useRef, useState, type Dispatch } from 'react';
import { useTranslation } from 'react-i18next';
import { CountryCodeSelector } from './CountryCodeSelector';
import { AuthenticationCard } from './AuthenticationCard';
export interface CompleteSignUpProps {
email: string;
@@ -59,7 +60,7 @@ export const CompleteSignUp = ({
};
return (
<Box sx={{ width: '100%' }}>
<AuthenticationCard>
<Typography variant="h5" sx={{ mb: 0.5 }}>
{t('completeSignUp.completeSignUp')}
</Typography>
@@ -101,6 +102,6 @@ export const CompleteSignUp = ({
<Button onClick={handleCompleteSignUp}>
{t('verify.confirmAndContinue')}
</Button>
</Box>
</AuthenticationCard>
);
};