upd: announcement

Deskripsi:
- pagination scrooll load

No Issues
This commit is contained in:
amel
2024-09-19 11:37:41 +08:00
parent 4026c58e8f
commit f8ca866cc6
6 changed files with 116 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
import { WrapLayout } from "@/module/_global"
import { ScrollProvider, WrapLayout } from "@/module/_global"
import { funDetectCookies, funGetUserByCookies } from "@/module/auth"
import _ from "lodash"
import { redirect } from "next/navigation"
@@ -11,7 +11,9 @@ export default async function Layout({ children }: { children: React.ReactNode }
return (
<>
<WrapLayout role={user.idUserRole} theme={user.theme} user={user.id}>
{children}
<ScrollProvider>
{children}
</ScrollProvider>
</WrapLayout>
</>
);