Merge pull request #253 from bipproduction/bagas/28-jan-25

Bagas/28 jan 25
This commit is contained in:
Bagasbanuna02
2025-01-28 11:52:18 +08:00
committed by GitHub
56 changed files with 1366 additions and 199 deletions

View File

@@ -1,10 +1,14 @@
import { funGetUserIdByToken } from '@/app_modules/_global/fun/get';
import LayoutEvent_DetailSponsor from '@/app_modules/event/detail/detail_sponsor/layout';
import React from 'react';
function Layout({children} : {children: React.ReactNode}) {
async function Layout({children} : {children: React.ReactNode}) {
const userLoginId = await funGetUserIdByToken()
return (
<>
<LayoutEvent_DetailSponsor>{children}</LayoutEvent_DetailSponsor>
<LayoutEvent_DetailSponsor userLoginId={userLoginId}>
{children}
</LayoutEvent_DetailSponsor>
</>
);
}

View File

@@ -1,10 +1,12 @@
import { funGetUserIdByToken } from '@/app_modules/_global/fun/get';
import DetailSponsor_Event from '@/app_modules/event/detail/detail_sponsor';
import React from 'react';
function Page() {
async function Page() {
const userLoginId = await funGetUserIdByToken();
return (
<>
<DetailSponsor_Event/>
<DetailSponsor_Event userLoginId={userLoginId} />
</>
);
}