This commit is contained in:
hamid zarghami
2025-03-01 18:11:07 +03:30
parent 9acf0e7085
commit 1ab4f29d65
3 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -392,7 +392,8 @@
"image_uploaded_successfully": "تصویر با موفقیت آپلود شد",
"confrim_email": "تایید ایمیل",
"confrim": "تایید صورتحساب ",
"link_email": "یک لینک برای تایید ایمیل برای شما ارسال شد."
"link_email": "یک لینک برای تایید ایمیل برای شما ارسال شد.",
"email_not_verified": "ایمیل تایید نشده"
},
"email": "ایمیل",
"save": "ذخیره",
+1
View File
@@ -163,6 +163,7 @@ const Profile: FC = () => {
/>
<Email
email={getProfile.data?.data?.user?.email}
isVerified={getProfile.data?.data?.user?.emailVerified}
/>
<Phone
phone={getProfile.data?.data?.user?.phone}
+8 -1
View File
@@ -12,6 +12,7 @@ import { toast } from 'react-toastify'
type Props = {
email: string | null,
isVerified: boolean
}
const Email: FC<Props> = (props: Props) => {
@@ -36,13 +37,19 @@ const Email: FC<Props> = (props: Props) => {
return (
<Fragment>
<div className='flex items-end xl:gap-6 gap-3 xl:mt-7 mt-4'>
<div className='flex relative items-end xl:gap-6 gap-3 xl:mt-7 mt-4'>
<Input
label={t('email')}
value={email}
readOnly={isReadOnly}
onChange={(e) => setEmail(e.target.value)}
/>
{
!props.isVerified &&
<div className='text-[10px] absolute left-24 text-red-400 top-[34px]'>
{t('profile.email_not_verified')}
</div>
}
{
isReadOnly ?
<div onClick={() => setIsReadOnly(false)} className='flex cursor-pointer relative -top-3 gap-1 text-[#0047FF] text-xs items-center'>