Fix: Avatar
Deskripsi: - Avatar job - Avatar collaboration - Avatar event ## No Issuue
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { LayoutVote_DetailKontribusi } from "@/app_modules/vote";
|
||||
import { voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get/fun_get_one_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
@@ -11,12 +12,14 @@ export default async function Layout({
|
||||
}) {
|
||||
const votingId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const dataVoting = await voting_funGetOneVotingbyId(votingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailKontribusi
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
</LayoutVote_DetailKontribusi>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { LayoutVote_MainDetail } from "@/app_modules/vote";
|
||||
import { voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get/fun_get_one_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
@@ -11,10 +12,15 @@ export default async function Layout({
|
||||
}) {
|
||||
const votingId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const dataVoting = await voting_funGetOneVotingbyId(votingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_MainDetail votingId={votingId} userLoginId={userLoginId}>
|
||||
<LayoutVote_MainDetail
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
</LayoutVote_MainDetail>
|
||||
</>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { LayoutVote_DetailPublish } from "@/app_modules/vote";
|
||||
import { Voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get";
|
||||
import { voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get/fun_get_one_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
@@ -13,11 +13,15 @@ export default async function Layout({
|
||||
const votingId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const dataVoting = await Voting_funGetOneVotingbyId(votingId);
|
||||
const dataVoting = await voting_funGetOneVotingbyId(votingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailPublish votingId={votingId} userLoginId={userLoginId}>
|
||||
<LayoutVote_DetailPublish
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
</LayoutVote_DetailPublish>
|
||||
</>
|
||||
|
||||
@@ -2,11 +2,11 @@ import { Vote_Beranda } from "@/app_modules/vote";
|
||||
import { vote_getAllListPublish } from "@/app_modules/vote/fun/get/get_all_list_publish";
|
||||
|
||||
export default async function Page() {
|
||||
const dataVote = await vote_getAllListPublish({page: 1})
|
||||
const dataVote = await vote_getAllListPublish({ page: 1 });
|
||||
|
||||
return (
|
||||
<>
|
||||
<Vote_Beranda dataVote={dataVote as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<Vote_Beranda dataVote={dataVote as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user