Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pooranjoyb committed Jun 4, 2024
1 parent b001621 commit a657b2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pages/Profile/EditProfileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function EditProfileModal({ userData, onUpdate }: Props) {
className="modal-toggle w-5xl"
/>
<div className="modal" role="dialog">
<div className="modal-box w-full card">
<div className="modal-box md:w-full px-4 card">
<h3 className="font-bold text-center text-lg">
Edit Your Profile
</h3>
Expand Down
11 changes: 5 additions & 6 deletions src/pages/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,17 @@ function Profile() {
<div className="w-full text-center">
<Head h2={username!} />
</div>
<Button text="Explore Products" color="mygreen" hover="myyellow" />

<div className="card flex w-full my-5 rounded-xl shadow-2xl">
{/* Button to open modal */}
<div className="w-full card">
<div className="flex gap-5">
<div className="card">
<label
htmlFor="my_modal_1"
className="btn bg-mygreen hover:bg-myyellow"
className="btn bg-myyellow hover:bg-mygreen"
>
Edit Profile
</label>
</div>
</div>
<div className="card flex w-full mb-5 rounded-xl shadow-2xl">
<EditProfileModal userData={userData} onUpdate={handleUpdate} />

<div className="flex p-5 sm:p-0 flex-col sm:flex-row w-full md:items-center">
Expand Down

0 comments on commit a657b2b

Please sign in to comment.