Some changes for profile
This commit is contained in:
parent
4d5aa62ca2
commit
ee5069aa2a
@ -33,7 +33,7 @@ const Profile = async ({
|
|||||||
const data = await getProfile();
|
const data = await getProfile();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-[#FAFCFF]">
|
<div className="bg-[#FAFCFF] py-10">
|
||||||
<Container className="flex flex-col">
|
<Container className="flex flex-col">
|
||||||
<ProfileNav report_count={data?.report_count as number} />
|
<ProfileNav report_count={data?.report_count as number} />
|
||||||
{children}
|
{children}
|
||||||
|
@ -107,7 +107,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
|
|||||||
value={firstName}
|
value={firstName}
|
||||||
{...register("firstName", { required: true })}
|
{...register("firstName", { required: true })}
|
||||||
type="text"
|
type="text"
|
||||||
className="w-full max-w-[957px] p-4 border border-white rounded-sm text-[18px] leading-6 text-black"
|
className="w-full max-w-[957px] p-4 border border-gray-400 rounded-md mr-2 text-[18px] leading-6 text-black"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@ -134,7 +134,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
|
|||||||
value={lastName}
|
value={lastName}
|
||||||
{...register("lastName", { required: true })}
|
{...register("lastName", { required: true })}
|
||||||
type="text"
|
type="text"
|
||||||
className="w-full max-w-[957px] p-4 border border-white rounded-sm text-[18px] leading-6 text-black"
|
className="w-full max-w-[957px] p-4 border border-gray-400 rounded-md mr-2 text-[18px] leading-6 text-black"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@ -157,7 +157,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
|
|||||||
value={email}
|
value={email}
|
||||||
disabled
|
disabled
|
||||||
type="text"
|
type="text"
|
||||||
className="w-full max-w-[957px] p-4 border border-white rounded-sm text-[18px] leading-6 text-black"
|
className="w-full max-w-[957px] p-4 border border-gray-400 rounded-md mr-2 text-[18px] leading-6 text-black"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -169,7 +169,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
|
|||||||
value={"*****************************"}
|
value={"*****************************"}
|
||||||
disabled={editLastName}
|
disabled={editLastName}
|
||||||
type="password"
|
type="password"
|
||||||
className="w-full max-w-[957px] p-4 border border-white rounded-sm text-[18px] leading-6 text-black"
|
className="w-full max-w-[957px] p-4 border border-gray-400 rounded-md mr-2 text-[18px] leading-6 text-black"
|
||||||
/>
|
/>
|
||||||
<button onClick={() => setOpenPopup(true)} type="button">
|
<button onClick={() => setOpenPopup(true)} type="button">
|
||||||
<Image src={pen} alt="Pen Icon" className="w-[22px] h-[22px]" />
|
<Image src={pen} alt="Pen Icon" className="w-[22px] h-[22px]" />
|
||||||
@ -187,7 +187,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
|
|||||||
>
|
>
|
||||||
{loader ? <Loader /> : "Сохранить изменения"}
|
{loader ? <Loader /> : "Сохранить изменения"}
|
||||||
</button>
|
</button>
|
||||||
<LogoutButton className="sm:block lg:flex-none" />
|
<LogoutButton className="lg:hidden sm:block" />
|
||||||
</form>
|
</form>
|
||||||
{openPopup && <ChangePassword closeWindow={setOpenPopup} />}
|
{openPopup && <ChangePassword closeWindow={setOpenPopup} />}
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user