chore: fix styles and change the apis

This commit is contained in:
Koosha Lahouti
2025-08-15 17:49:53 +03:30
parent f82fed54d5
commit fa2d2a3c73
15 changed files with 1218 additions and 1190 deletions

View File

@@ -13,24 +13,7 @@ import {
import { useTranslation } from 'react-i18next';
import { TickCircle, Edit } from 'iconsax-react';
import { Icon } from '@rkheftan/harmony-ui';
interface EmailSectionProps {
showEmail: boolean;
setShowEmail: (checked: boolean) => void;
email: string;
setEmail: (email: string) => void;
correctEmail: boolean;
codeSent: boolean;
verificationCode: string;
setVerificationCode: (code: string) => void;
buttonState: 'default' | 'counting' | 'sent';
getButtonLabel: () => string;
handleSendCode: () => void;
handleVerifyCode: () => void;
emailVerified: boolean;
loading: boolean;
handleEditEmail: () => void;
}
import { type EmailSectionProps } from '../types/settingForm';
export function EmailSection({
showEmail,