From 10a9cfe37d01ec6c6d15a5ace72138aec39ef3c5 Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Fri, 6 Oct 2023 16:53:41 +0800 Subject: [PATCH] title: auto des: auto note:auto --- src/app_modules/home/view.tsx | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/app_modules/home/view.tsx b/src/app_modules/home/view.tsx index f6c9cc61..2886e970 100644 --- a/src/app_modules/home/view.tsx +++ b/src/app_modules/home/view.tsx @@ -109,25 +109,25 @@ export default function HomeView() { setProfile(data); } - const [foto, setFoto] = useAtom(gs_fotoProfile); - useShallowEffect(() => { - getFoto(profile?.imagesId); - // if (profile?.imagesId === undefined) { - // return myConsole("Waiting data"); - // } else { - // getFoto(profile?.imagesId); - // } - }, [profile?.imagesId]); + // const [foto, setFoto] = useAtom(gs_fotoProfile); + // useShallowEffect(() => { + // getFoto(profile?.imagesId); + // // if (profile?.imagesId === undefined) { + // // return myConsole("Waiting data"); + // // } else { + // // getFoto(profile?.imagesId); + // // } + // }, [profile?.imagesId]); - async function getFoto(id: string) { - if(id === undefined){ - return myConsole("Waiting data") - } else { - const data = await getFotoProfile(id); - setFoto(data); - } + // async function getFoto(id: string) { + // if(id === undefined){ + // return myConsole("Waiting data") + // } else { + // const data = await getFotoProfile(id); + // setFoto(data); + // } - } + // } // const [listPorto, setListPorto] = useAtom(gs_ListPortofolio); // useShallowEffect(() => { @@ -158,7 +158,7 @@ export default function HomeView() { - Welcome to I,{" "} + Welcome to ,{" "} {token?.username ? token?.username : }