Commit 73c614b3 authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

update/img err

parent 75a186b4
......@@ -15,7 +15,7 @@ function CardEvent({ event }: { event: EventItem }) {
className='w-[100px] md:w-[130px] aspect-3/2 object-cover'
onError={(e) => {
e.currentTarget.onerror = null
e.currentTarget.src = "/fallback.png"
e.currentTarget.src = "/VCCI-Chung-300x200-1.png"
}}
/>
<div className='flex-1'>
......
......@@ -15,7 +15,7 @@ function CardNews({ news }: { news: NewsItem }) {
className="w-[100px] md:w-[130px] aspect-3/2 object-cover"
onError={(e) => {
e.currentTarget.onerror = null
e.currentTarget.src = "/fallback.png"
e.currentTarget.src = "/VCCI-Chung-300x200-1.png"
}}
/>
<div className="flex-1">
......
......@@ -380,7 +380,7 @@ const Page = () => {
className="w-full h-full object-cover"
onError={(e) => {
(e.target as HTMLImageElement).src =
"/img-error.png";
"/VCCI-Chung-300x200-1.png";
}}
/>
</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