Login bug fix
This commit is contained in:
9
src/app/dev/event/main/loading.tsx
Normal file
9
src/app/dev/event/main/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_LoadingPage height="100%"/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/event/splash/loading.tsx
Normal file
9
src/app/dev/event/splash/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_LoadingPage height="100vh"/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
import { Event_SplashScreen } from "@/app_modules/event";
|
||||
|
||||
export default async function Page() {
|
||||
// await new Promise((a, b) => {
|
||||
// setTimeout(a, 1000);
|
||||
// });
|
||||
return <Event_SplashScreen />;
|
||||
}
|
||||
|
||||
9
src/app/dev/home/loading.tsx
Normal file
9
src/app/dev/home/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_LoadingPage height="100%"/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -8,6 +8,9 @@ import { User_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
||||
export default async function Page() {
|
||||
const userId = await User_getUserId();
|
||||
const dataUser = await User_getOneById(userId);
|
||||
// await new Promise((a, b) => {
|
||||
// setTimeout(a, 1000);
|
||||
// });
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
10
src/app/dev/katalog/[id]/loading.tsx
Normal file
10
src/app/dev/katalog/[id]/loading.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
|
||||
|
||||
export default async function Page() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_LoadingPage height="100%" />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -12,18 +12,28 @@ import { funGetListPortofolio } from "@/app_modules/katalog/portofolio/fun/get/g
|
||||
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
import { Profile_getOneById } from "@/app_modules/katalog/profile/fun/get/get_one_profile";
|
||||
import { Profile_getOneProfileAndUserById } from "@/app_modules/katalog/profile/fun/get/get_one_user_profile";
|
||||
import { User_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
||||
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let profileId = params.id;
|
||||
const userLoginId = await User_getUserId()
|
||||
const authorId = await User_getUserId();
|
||||
const dataUser = await User_getOneById(authorId)
|
||||
const listPorto = await funGetListPortofolio(profileId);
|
||||
const dataProfile = await Profile_getOneProfileAndUserById(profileId)
|
||||
const dataProfile = await Profile_getOneProfileAndUserById(profileId);
|
||||
// console.log(dataProfile)
|
||||
|
||||
await new Promise((a, b) => {
|
||||
setTimeout(a, 1000);
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<KatalogView profile={dataProfile as any} listPorto={listPorto as any} userLoginId={userLoginId} />
|
||||
<KatalogView
|
||||
profile={dataProfile as any}
|
||||
listPorto={listPorto as any}
|
||||
userLoginId={authorId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user