Commit 33fcbbfb authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

update loading

parent e83b5a22
...@@ -67,14 +67,12 @@ const Page = () => { ...@@ -67,14 +67,12 @@ const Page = () => {
'/home/hoi-vien-tieu-bieu/UOB-logo_Vuong.jpeg.webp', '/home/hoi-vien-tieu-bieu/UOB-logo_Vuong.jpeg.webp',
] ]
if (isLoadingNews || isLoadingCategory || isLoadingEvent)
return ( return (
<div className="w-full h-[80vh] flex justify-center items-center"> isLoadingNews || isLoadingCategory || isLoadingEvent ? (
<div className="container w-full h-[80vh] flex justify-center items-center">
<Spinner /> <Spinner />
</div> </div>
) ) : (
return (
<> <>
{/* Banner */} {/* Banner */}
<Swiper <Swiper
...@@ -580,6 +578,7 @@ const Page = () => { ...@@ -580,6 +578,7 @@ const Page = () => {
</div > </div >
</> </>
) )
)
} }
export default Page export default Page
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