title: auto
des: auto note:auto
This commit is contained in:
@@ -109,16 +109,20 @@ export default function HomeView() {
|
|||||||
setProfile(data);
|
setProfile(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// const [foto, setFoto] = useAtom(gs_fotoProfile);
|
const [foto, setFoto] = useAtom(gs_fotoProfile);
|
||||||
// useShallowEffect(() => {
|
useShallowEffect(() => {
|
||||||
// if (profile?.imagesId === undefined) {
|
if (profile?.imagesId === undefined) {
|
||||||
// return myConsole("Waiting data");
|
return myConsole("Waiting data");
|
||||||
// } else {
|
} else {
|
||||||
// getFotoProfile(profile?.imagesId).then((v) => setFoto(v?.url));
|
getFoto(profile?.imagesId);
|
||||||
// }
|
}
|
||||||
// }, [profile?.imagesId]);
|
}, [profile?.imagesId]);
|
||||||
|
|
||||||
|
async function getFoto(id: string) {
|
||||||
|
const data = await getFotoProfile(id);
|
||||||
|
setFoto(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// const [listPorto, setListPorto] = useAtom(gs_ListPortofolio);
|
// const [listPorto, setListPorto] = useAtom(gs_ListPortofolio);
|
||||||
// useShallowEffect(() => {
|
// useShallowEffect(() => {
|
||||||
// getListPorto(profile?.id);
|
// getListPorto(profile?.id);
|
||||||
@@ -148,7 +152,7 @@ export default function HomeView() {
|
|||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
Welcome to I ,{" "}
|
Welcome to ,{" "}
|
||||||
{token?.username ? token?.username : <Loader size={"xs"} />}
|
{token?.username ? token?.username : <Loader size={"xs"} />}
|
||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Reference in New Issue
Block a user