fix : user id

deskripsi:
- pemanggilan user id menggunakan API dan tidak lagi di server sid, pada bagian katalog dan ptofile
This commit is contained in:
2025-05-23 15:16:37 +08:00
parent c202cc8ea0
commit ecfc6a37e5
10 changed files with 23 additions and 66 deletions

View File

@@ -1,12 +1,9 @@
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
import { LayoutKatalogNew } from "@/app_modules/katalog/main";
export default async function Layout({ children }: { children: any }) {
const userLoginId = await funGetUserIdByToken();
export default function Layout({ children }: { children: any }) {
return (
<>
<LayoutKatalogNew userLoginId={userLoginId}>{children}</LayoutKatalogNew>
<LayoutKatalogNew>{children}</LayoutKatalogNew>
</>
);
}

View File

@@ -1,6 +1,6 @@
import { ViewKatalogNew } from "@/app_modules/katalog";
export default async function Page() {
export default function Page() {
return (
<>
<ViewKatalogNew />

View File

@@ -1,6 +1,6 @@
import { CreateProfile } from "@/app_modules/katalog/profile";
export default async function Page() {
export default function Page() {
return (
<>
<CreateProfile />

View File

@@ -1,12 +1,6 @@
import { EditProfileLayout } from "@/app_modules/katalog/profile";
export default async function Layout({
children,
params,
}: {
children: any;
params: { id: string };
}) {
export default function Layout({ children }: { children: any }) {
return (
<>
<EditProfileLayout>{children}</EditProfileLayout>

View File

@@ -1,10 +1,9 @@
import EditProfile from "@/app_modules/katalog/profile/edit/view";
export default async function Page() {
export default function Page() {
return (
<>
<EditProfile />
<EditProfile />
</>
);
}

View File

@@ -1,11 +1,7 @@
import LayoutProfile_UpdateFotoBackground from "@/app_modules/katalog/profile/upload/foto_background/layout";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
<LayoutProfile_UpdateFotoBackground>

View File

@@ -1,6 +1,6 @@
import Profile_UpdateFotoBackground from "@/app_modules/katalog/profile/upload/foto_background"
import Profile_UpdateFotoBackground from "@/app_modules/katalog/profile/upload/foto_background";
export default async function Page() {
export default function Page() {
return (
<>
<Profile_UpdateFotoBackground />

View File

@@ -1,11 +1,7 @@
import { UploadFotoProfileLayout } from "@/app_modules/katalog/profile";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
<UploadFotoProfileLayout>{children}</UploadFotoProfileLayout>

View File

@@ -1,6 +1,6 @@
import { UploadFotoProfile } from "@/app_modules/katalog/profile";
export default async function Page() {
export default function Page() {
return (
<>
<UploadFotoProfile />