refactor: integrate autoplay functionality in Banner and enhance news data handling
This commit is contained in:
@@ -19,6 +19,11 @@ export const NewsPage = () => {
|
||||
description: loaderData?.beritaCategory?.description || '',
|
||||
items: loaderData?.beritaNews || [],
|
||||
}
|
||||
const kajian: TNews = {
|
||||
title: loaderData?.kajianCategory?.name || '',
|
||||
description: loaderData?.kajianCategory?.description || '',
|
||||
items: loaderData?.kajianNews || [],
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
@@ -32,9 +37,9 @@ export const NewsPage = () => {
|
||||
<Card>
|
||||
<CarouselSection {...berita} />
|
||||
</Card>
|
||||
{/* <Card>
|
||||
<CarouselSection {...KAJIAN} />
|
||||
</Card> */}
|
||||
<Card>
|
||||
<CarouselSection {...kajian} />
|
||||
</Card>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user