Skip to content

Commit 884df78

Browse files
committed
UI improvements
1 parent 41d16a6 commit 884df78

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

packages/nextjs/app/profile/_components/ProfilePictureUpload.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const ProfilePictureUpload: React.FC<ProfilePictureUploadProps> = ({
2121
const [previewImage, setPreviewImage] = useState<string>("");
2222
const [dragActive, setDragActive] = useState(false);
2323
const [loading, setLoading] = useState(false);
24-
const [hovered, setHovered] = useState(false);
2524

2625
useEffect(() => {
2726
if (profilePicture) {
@@ -90,8 +89,6 @@ const ProfilePictureUpload: React.FC<ProfilePictureUploadProps> = ({
9089
onDragOver={handleDragOver}
9190
onDragLeave={handleDragLeave}
9291
onDrop={handleDrop}
93-
onMouseEnter={() => setHovered(true)}
94-
onMouseLeave={() => setHovered(false)}
9592
>
9693
<input
9794
type="file"
@@ -140,14 +137,6 @@ const ProfilePictureUpload: React.FC<ProfilePictureUploadProps> = ({
140137
height={128}
141138
/>
142139
)}
143-
{hovered && previewImage && (
144-
<button
145-
className="absolute top-5 right-5 bg-red-500 text-white w-6 h-6 flex items-center justify-center rounded-full"
146-
onClick={handleRemoveImage}
147-
>
148-
149-
</button>
150-
)}
151140
{loading && (
152141
<div className="absolute inset-0 flex items-center justify-center bg-gray-700 bg-opacity-75 text-white">
153142
Uploading...

packages/nextjs/app/profile/_components/_bookmarked/PostCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export const PostCard = ({ post }: { post: Post }) => {
151151
src={post.image || "/path/to/default/image.png"}
152152
alt="NFT Image"
153153
className="w-full h-auto rounded-lg object-cover"
154-
layout="responsive"
154+
// layout="responsive"
155155
width={800} // Adjust this to the desired fullscreen width
156156
height={800} // Adjust this to maintain the aspect ratio of the image
157157
/>

packages/nextjs/app/profile/_components/_bought/PostCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const PostCard = ({ post }: { post: Post }) => {
8383
src={post.image || "/path/to/default/image.png"}
8484
alt="NFT Image"
8585
className="w-full h-auto rounded-lg object-cover"
86-
layout="responsive"
86+
// layout="responsive"
8787
width={800} // Adjust this to the desired fullscreen width
8888
height={800} // Adjust this to maintain the aspect ratio of the image
8989
/>

packages/nextjs/components/punk-society/PostCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const PostCard = ({ post }: { post: Post }) => {
142142
src={post.image || "/path/to/default/image.png"}
143143
alt="NFT Image"
144144
className="w-full h-auto rounded-lg object-cover"
145-
layout="responsive"
145+
// layout="responsive"
146146
width={800} // Adjust this to the desired fullscreen width
147147
height={800} // Adjust this to maintain the aspect ratio of the image
148148
/>

0 commit comments

Comments
 (0)