fix
Decs: - Perubahan Minor
This commit is contained in:
BIN
public/img/07a4e82b-1919-4bde-af66-d280d340c85e.webp
Normal file
BIN
public/img/07a4e82b-1919-4bde-af66-d280d340c85e.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
@@ -40,7 +40,7 @@ export default function EditProfile({ data }: { data: any }) {
|
|||||||
if (val.status == 200) {
|
if (val.status == 200) {
|
||||||
toast("Data tersimpan");
|
toast("Data tersimpan");
|
||||||
loadDataProfile(setProfile)
|
loadDataProfile(setProfile)
|
||||||
return router.push("/dev/katalog/view");
|
return setTimeout(() => router.push("/dev/katalog/view"), 1000);
|
||||||
} else {
|
} else {
|
||||||
return toast("Gagal update !!!");
|
return toast("Gagal update !!!");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import ProfileLayout from "./create/layout";
|
import ProfileLayout from "./create/layout";
|
||||||
import CreateProfile from "./create/view";
|
import CreateProfile from "./create/view";
|
||||||
import { getProfile } from "./fun/api-get-profile";
|
import { getProfile } from "./api/get-profile";
|
||||||
import EditProfileLayout from "./edit/layout";
|
import EditProfileLayout from "./edit/layout";
|
||||||
import EditProfileView from "./edit/view";
|
import EditProfileView from "./edit/view";
|
||||||
import UploadFotoProfile from "./upload/view";
|
import UploadFotoProfile from "./upload/view";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useShallowEffect } from "@mantine/hooks";
|
|||||||
import { useAtom } from "jotai";
|
import { useAtom } from "jotai";
|
||||||
import { loadDataProfile } from "../fun/fun_get_profile";
|
import { loadDataProfile } from "../fun/fun_get_profile";
|
||||||
import { gs_profile } from "../state/global_state";
|
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 { useState } from "react";
|
||||||
import { ApiHipmi } from "@/app/lib/api";
|
import { ApiHipmi } from "@/app/lib/api";
|
||||||
import { myConsole } from "@/app/fun/my_console";
|
import { myConsole } from "@/app/fun/my_console";
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import { gs_profile } from "../profile/state/global_state";
|
|||||||
import { myConsole } from "@/app/fun/my_console";
|
import { myConsole } from "@/app/fun/my_console";
|
||||||
import { useAtom } from "jotai";
|
import { useAtom } from "jotai";
|
||||||
import { loadDataProfile } from "../profile/fun/fun_get_profile";
|
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";
|
import { ApiHipmi } from "@/app/lib/api";
|
||||||
|
|
||||||
export default function KatalogView({data}: {data: any}) {
|
export default function KatalogView({data}: {data: any}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user