Fix rejected Apple :

Submission ID: 1efcd8eb-7d68-4348-9925-43a8e1bd7d1e

Add:
-  app/(application)/terms-agreement.tsx

Fix:
- app/(application)/(user)/home.tsx
- app/(application)/_layout.tsx
- context/AuthContext.tsx
- ios/HIPMIBadungConnect/Info.plist
- screens/Authentication/LoginView.tsx
- screens/Authentication/RegisterView.tsx
- service/api-config.ts
- types/User.ts

### NO Issue
This commit is contained in:
2025-11-24 17:09:52 +08:00
parent 0c4deac6e2
commit 41e648d8f3
9 changed files with 199 additions and 16 deletions

View File

@@ -56,10 +56,22 @@ export async function apiValidationCode({ nomor }: { nomor: string }) {
export async function apiRegister({
data,
}: {
data: { nomor: string; username: string };
data: { nomor: string; username: string; termsOfServiceAccepted: boolean };
}) {
const response = await apiConfig.post(`/auth/register`, {
data: data,
});
return response.data;
}
export async function apiAcceptTermService({
data,
}: {
data: { id: string; termsOfServiceAccepted: boolean };
}) {
const response = await apiConfig.post(`/auth/term-service`, {
data: data,
});
return response.data;
}