Fix semua tampilan yang memiliki fungsi infitine load

UI – User Notifications
- app/(application)/(user)/notifications/index.tsx
- service/api-notifications.ts
- screens/Notification/

UI – Portofolio (User)
- app/(application)/(user)/portofolio/[id]/create.tsx
- app/(application)/(user)/portofolio/[id]/edit.tsx
- app/(application)/(user)/portofolio/[id]/list.tsx
- screens/Portofolio/BoxPortofolioView.tsx
- screens/Portofolio/ViewListPortofolio.tsx
- screens/Profile/PortofolioSection.tsx
- service/api-client/api-portofolio.ts

Forum & User Search
- screens/Forum/DetailForum2.tsx
- screens/Forum/ViewBeranda3.tsx
- screens/UserSeach/MainView_V2.tsx

Constants & Docs
- constants/constans-value.ts
- docs/prompt-for-qwen-code.md

### No Issue
This commit is contained in:
2026-01-30 17:18:47 +08:00
parent ed16f1b204
commit ec79a1fbcd
15 changed files with 411 additions and 326 deletions

View File

@@ -12,9 +12,9 @@ export async function apiPortofolioCreate({ data }: { data: any }) {
}
}
export async function apiGetPortofolio({ id }: { id: string }) {
export async function apiGetPortofolio({ id, page = "1" }: { id: string; page?: string }) {
try {
const response = await apiConfig.get(`/mobile/portofolio?id=${id}`);
const response = await apiConfig.get(`/mobile/portofolio?id=${id}&page=${page}`);
return response.data;
} catch (error) {

View File

@@ -41,16 +41,19 @@ export async function apiNotificationsSendById({
export async function apiGetNotificationsById({
id,
category,
page = "1",
}: {
id: string;
category: TypeNotificationCategoryApp;
page?: string;
}) {
console.log("ID", id);
console.log("Category", category);
console.log("Page", page);
try {
const response = await apiConfig.get(
`/mobile/notification/${id}?category=${category}`
`/mobile/notification/${id}?category=${category}&page=${page}`
);
return response.data;