File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
app/routes/users+/$username_+ Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -198,13 +198,21 @@ function ImageChooser({
198198 >
199199 { previewImage ? (
200200 < div className = "relative" >
201- < Img
202- src = { previewImage }
203- alt = { altText ?? '' }
204- className = "h-32 w-32 rounded-lg object-cover"
205- width = { 512 }
206- height = { 512 }
207- />
201+ { existingImage ? (
202+ < Img
203+ src = { previewImage }
204+ alt = { altText ?? '' }
205+ className = "h-32 w-32 rounded-lg object-cover"
206+ width = { 512 }
207+ height = { 512 }
208+ />
209+ ) : (
210+ < img
211+ src = { previewImage }
212+ alt = { altText ?? '' }
213+ className = "h-32 w-32 rounded-lg object-cover"
214+ />
215+ ) }
208216 { existingImage ? null : (
209217 < div className = "pointer-events-none absolute -right-0.5 -top-0.5 rotate-12 rounded-sm bg-secondary px-2 py-1 text-xs text-secondary-foreground shadow-md" >
210218 new
You can’t perform that action at this time.
0 commit comments