Some changes for profile

This commit is contained in:
anime committed 2024-09-27 15:53:38 +06:00
1 parent 4d5aa62ca2
commit ee5069aa2a
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ const Profile = async ({
const data = await getProfile();
return (
<div className="bg-[#FAFCFF]">
<div className="bg-[#FAFCFF] py-10">
<Container className="flex flex-col">
<ProfileNav report_count={data?.report_count as number} />
{children}
@@ -107,7 +107,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
value={firstName}
{...register("firstName", { required: true })}
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
type="button"
@@ -134,7 +134,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
value={lastName}
{...register("lastName", { required: true })}
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
type="button"
@@ -157,7 +157,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
value={email}
disabled
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>
@@ -169,7 +169,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
value={"*****************************"}
disabled={editLastName}
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">
<Image src={pen} alt="Pen Icon" className="w-[22px] h-[22px]" />
@@ -187,7 +187,7 @@ const ProfileForm: React.FC<IProfileFormProps> = ({
>
{loader ? <Loader /> : "Сохранить изменения"}
</button>
<LogoutButton className="sm:block lg:flex-none" />
<LogoutButton className="lg:hidden sm:block" />
</form>
{openPopup && <ChangePassword closeWindow={setOpenPopup} />}
</>