Decs:
- Perubahan Minor
This commit is contained in:
2023-10-05 12:09:08 +08:00
parent cc031fea8a
commit ad86f37c7b
7 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@@ -40,7 +40,7 @@ export default function EditProfile({ data }: { data: any }) {
if (val.status == 200) {
toast("Data tersimpan");
loadDataProfile(setProfile)
return router.push("/dev/katalog/view");
return setTimeout(() => router.push("/dev/katalog/view"), 1000);
} else {
return toast("Gagal update !!!");
}

View File

@@ -1,6 +1,6 @@
import ProfileLayout from "./create/layout";
import CreateProfile from "./create/view";
import { getProfile } from "./fun/api-get-profile";
import { getProfile } from "./api/get-profile";
import EditProfileLayout from "./edit/layout";
import EditProfileView from "./edit/view";
import UploadFotoProfile from "./upload/view";

View File

@@ -5,7 +5,7 @@ import { useShallowEffect } from "@mantine/hooks";
import { useAtom } from "jotai";
import { loadDataProfile } from "../fun/fun_get_profile";
import { gs_profile } from "../state/global_state";
import { getFotoProfile } from "../fun/get_foto_profile";
import { getFotoProfile } from "../api/get-foto-profile";
import { useState } from "react";
import { ApiHipmi } from "@/app/lib/api";
import { myConsole } from "@/app/fun/my_console";

View File

@@ -30,7 +30,7 @@ import { gs_profile } from "../profile/state/global_state";
import { myConsole } from "@/app/fun/my_console";
import { useAtom } from "jotai";
import { loadDataProfile } from "../profile/fun/fun_get_profile";
import { getFotoProfile } from "../profile/fun/get_foto_profile";
import { getFotoProfile } from "../profile/api/get-foto-profile";
import { ApiHipmi } from "@/app/lib/api";
export default function KatalogView({data}: {data: any}) {