Commit 6ce90a96 authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

update/fix img err

parent 1aefd0c4
...@@ -233,6 +233,10 @@ const Page = () => { ...@@ -233,6 +233,10 @@ const Page = () => {
src={`${BASE_URL.imageEndpoint}${news.thumbnail}`} src={`${BASE_URL.imageEndpoint}${news.thumbnail}`}
alt={news.title} alt={news.title}
className="w-full h-full object-cover" className="w-full h-full object-cover"
onError={(e) => {
e.currentTarget.onerror = null
e.currentTarget.src = "/fallback.png"
}}
/> />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment