From 49589a3b841f578520c1747d50180299f40ab96e Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Fri, 6 Oct 2023 15:22:53 +0800 Subject: [PATCH] title: auto des: auto note:auto --- src/app_modules/home/view.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app_modules/home/view.tsx b/src/app_modules/home/view.tsx index f0ef46ac..6e4bcf50 100644 --- a/src/app_modules/home/view.tsx +++ b/src/app_modules/home/view.tsx @@ -102,19 +102,19 @@ export default function HomeView() { loadDataProfile(setProfile); }, []); - const [foto, setFoto] = useAtom(gs_fotoProfile); - useShallowEffect(() => { - if (profile?.imagesId === undefined) { - return myConsole("Waiting data"); - } else { - getFotoProfile(profile?.imagesId).then((v) => setFoto(v?.url)); - } - }, [profile?.imagesId]); + // const [foto, setFoto] = useAtom(gs_fotoProfile); + // useShallowEffect(() => { + // if (profile?.imagesId === undefined) { + // return myConsole("Waiting data"); + // } else { + // getFotoProfile(profile?.imagesId).then((v) => setFoto(v?.url)); + // } + // }, [profile?.imagesId]); - const [listPorto, setListPorto] = useAtom(gs_ListPortofolio) - useShallowEffect(() => { - loadListPortofolio(profile?.id).then((res) => setListPorto(res)); - }, [profile?.id]); + // const [listPorto, setListPorto] = useAtom(gs_ListPortofolio) + // useShallowEffect(() => { + // loadListPortofolio(profile?.id).then((res) => setListPorto(res)); + // }, [profile?.id]); return ( <>