This commit is contained in:
+2
-1
@@ -392,7 +392,8 @@
|
|||||||
"image_uploaded_successfully": "تصویر با موفقیت آپلود شد",
|
"image_uploaded_successfully": "تصویر با موفقیت آپلود شد",
|
||||||
"confrim_email": "تایید ایمیل",
|
"confrim_email": "تایید ایمیل",
|
||||||
"confrim": "تایید صورتحساب ",
|
"confrim": "تایید صورتحساب ",
|
||||||
"link_email": "یک لینک برای تایید ایمیل برای شما ارسال شد."
|
"link_email": "یک لینک برای تایید ایمیل برای شما ارسال شد.",
|
||||||
|
"email_not_verified": "ایمیل تایید نشده"
|
||||||
},
|
},
|
||||||
"email": "ایمیل",
|
"email": "ایمیل",
|
||||||
"save": "ذخیره",
|
"save": "ذخیره",
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ const Profile: FC = () => {
|
|||||||
/>
|
/>
|
||||||
<Email
|
<Email
|
||||||
email={getProfile.data?.data?.user?.email}
|
email={getProfile.data?.data?.user?.email}
|
||||||
|
isVerified={getProfile.data?.data?.user?.emailVerified}
|
||||||
/>
|
/>
|
||||||
<Phone
|
<Phone
|
||||||
phone={getProfile.data?.data?.user?.phone}
|
phone={getProfile.data?.data?.user?.phone}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { toast } from 'react-toastify'
|
|||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
email: string | null,
|
email: string | null,
|
||||||
|
isVerified: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const Email: FC<Props> = (props: Props) => {
|
const Email: FC<Props> = (props: Props) => {
|
||||||
@@ -36,13 +37,19 @@ const Email: FC<Props> = (props: Props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<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
|
<Input
|
||||||
label={t('email')}
|
label={t('email')}
|
||||||
value={email}
|
value={email}
|
||||||
readOnly={isReadOnly}
|
readOnly={isReadOnly}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
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 ?
|
isReadOnly ?
|
||||||
<div onClick={() => setIsReadOnly(false)} className='flex cursor-pointer relative -top-3 gap-1 text-[#0047FF] text-xs items-center'>
|
<div onClick={() => setIsReadOnly(false)} className='flex cursor-pointer relative -top-3 gap-1 text-[#0047FF] text-xs items-center'>
|
||||||
|
|||||||
Reference in New Issue
Block a user