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 = () => {
'/home/hoi-vien-tieu-bieu/UOB-logo_Vuong.jpeg.webp',
]
if (isLoadingNews || isLoadingCategory || isLoadingEvent)
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 />
</div>
)
return (
) : (
<>
{/* Banner */}
<Swiper
......@@ -580,6 +578,7 @@ const Page = () => {
</div >
</>
)
)
}
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