Skip to content

Commit 2b1211a

Browse files
committed
♻️ refactor[image]: simplify image source URL generation
Remove unnecessary options from the urlFor method to streamline the image loading process while maintaining the same functionality.
1 parent 2331776 commit 2b1211a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/Prosjekter/ProsjektCard.component.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ const ProsjektCard: React.FC<Project> = ({
4444
<img
4545
className="transition-all duration-300 ease-in-out hover:-translate-y-1 hover:shadow-[0_2px_20px_rgba(60,255,60,0.35)]"
4646
width={600}
47-
src={urlFor(projectimage)
48-
.width(600)
49-
.fit("max")
50-
.quality(100)
51-
.auto("format")
52-
.url()}
47+
src={urlFor(projectimage).url()}
5348
alt={name}
5449
/>
5550
)}

0 commit comments

Comments
 (0)