fix/profile image not allowed in next/image
This commit is contained in:
parent
82978ed739
commit
d7e0a8b614
1 changed files with 6 additions and 7 deletions
|
|
@ -160,8 +160,8 @@ const VideoList: NextPage = () => {
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="mb-4 flex flex-col">
|
<div className="mb-4 flex flex-col">
|
||||||
<div className="h-5 w-[300px] animate-pulse rounded bg-slate-200"></div>
|
<div className="animate-pulse h-5 w-[300px] rounded bg-slate-200"></div>
|
||||||
<div className="mt-2 h-4 w-[50px] animate-pulse rounded bg-slate-200"></div>
|
<div className="animate-pulse mt-2 h-4 w-[50px] rounded bg-slate-200"></div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -169,9 +169,8 @@ const VideoList: NextPage = () => {
|
||||||
{!isLoading ? (
|
{!isLoading ? (
|
||||||
<>
|
<>
|
||||||
<div className="h-10 w-10 overflow-hidden rounded-full">
|
<div className="h-10 w-10 overflow-hidden rounded-full">
|
||||||
<Image
|
<img
|
||||||
width={40}
|
className="h-[40px] w-[40px]"
|
||||||
height={40}
|
|
||||||
src={
|
src={
|
||||||
video.user.image ??
|
video.user.image ??
|
||||||
"https://i.stack.imgur.com/dr5qp.jpg"
|
"https://i.stack.imgur.com/dr5qp.jpg"
|
||||||
|
|
@ -183,8 +182,8 @@ const VideoList: NextPage = () => {
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<div className="h-10 w-10 animate-pulse overflow-hidden rounded-full bg-red-400 bg-slate-200"></div>
|
<div className="animate-pulse h-10 w-10 overflow-hidden rounded-full bg-red-400 bg-slate-200"></div>
|
||||||
<div className="ml-3 h-4 w-[100px] animate-pulse rounded bg-slate-200 font-medium"></div>
|
<div className="animate-pulse ml-3 h-4 w-[100px] rounded bg-slate-200 font-medium"></div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue