API Profile:

Fix:
- api create, get , edit

Types
Add:
- Type-Profile

### No Issue
This commit is contained in:
2025-08-25 17:59:07 +08:00
parent df5313a243
commit 59482ca712
17 changed files with 323 additions and 198 deletions

View File

@@ -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 />