Fix: Cookies

This commit is contained in:
2024-11-26 01:06:46 +08:00
parent ac5b8a8c4b
commit 038c40a6fb
29 changed files with 341 additions and 172 deletions

View File

@@ -1,5 +1,4 @@
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
import { CheckCookies_UiView } from "@/app_modules/check_cookies";
import { LayoutVote_DetailSemuaRiwayat } from "@/app_modules/vote";
import React from "react";
@@ -12,9 +11,7 @@ export default async function Layout({
}) {
const votingId = params.id;
const userLoginId = await funGetUserIdByToken();
if (!userLoginId) return <CheckCookies_UiView />;
return (
<>
<LayoutVote_DetailSemuaRiwayat