API Profile:
Fix: - api create, get , edit Types Add: - Type-Profile ### No Issue
This commit is contained in:
@@ -22,14 +22,17 @@ export default function Application() {
|
||||
|
||||
async function onLoadData() {
|
||||
const response = await apiUser(user?.id as string);
|
||||
console.log("data user >>", JSON.stringify(response.active, null, 2));
|
||||
setData(response.data);
|
||||
}
|
||||
|
||||
if (data?.active === false) {
|
||||
if (data && data?.active === false) {
|
||||
return <Redirect href={`/waiting-room`} />;
|
||||
}
|
||||
|
||||
if (data && data?.Profile === null) {
|
||||
return <Redirect href={`/profile/create`} />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Stack.Screen
|
||||
@@ -57,7 +60,11 @@ export default function Application() {
|
||||
),
|
||||
}}
|
||||
/>
|
||||
<ViewWrapper footerComponent={<TabSection tabs={tabsHome} />}>
|
||||
<ViewWrapper
|
||||
footerComponent={
|
||||
<TabSection tabs={tabsHome(data?.Profile?.id as string)} />
|
||||
}
|
||||
>
|
||||
<StackCustom>
|
||||
<Home_ImageSection />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user