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

@@ -5,6 +5,7 @@ import {
LoaderCustom,
NewWrapper,
Spacing,
StackCustom,
TextAreaCustom,
TextCustom,
TextInputCustom,
@@ -111,7 +112,6 @@ export default function DetailForum2() {
// Create Commentar
const handlerCreateCommentar = async () => {
const cencorContent = censorText(text);
const newData = {
@@ -155,7 +155,10 @@ export default function DetailForum2() {
const headerComponent = () =>
// Box Posting
!data ? (
<CustomSkeleton height={200} />
<StackCustom>
<CustomSkeleton height={200} />
<CustomSkeleton height={100} />
</StackCustom>
) : (
<>
{/* Area Posting */}
@@ -199,10 +202,7 @@ export default function DetailForum2() {
);
// Render individual comment item
const renderCommentItem = ({ item }: { item: TypeForum_CommentProps }) =>
!data && !commentPagination.listData ? (
<ListSkeletonComponent />
) : (
const renderCommentItem = ({ item }: { item: TypeForum_CommentProps }) =>(
<Forum_CommentarBoxSection
key={item.id}
data={item}
@@ -212,7 +212,21 @@ export default function DetailForum2() {
setCommentAuthorId(value.setCommentAuthorId);
}}
/>
);
)
// !data || !commentPagination.listData ? (
// // <ListSkeletonComponent height={120} />
// <LoaderCustom />
// ) : (
// <Forum_CommentarBoxSection
// key={item.id}
// data={item}
// onSetData={(value) => {
// setCommentId(value.setCommentId);
// setOpenDrawerCommentar(value.setOpenDrawer);
// setCommentAuthorId(value.setCommentAuthorId);
// }}
// />
// );
// Generate pagination components using helper
const { ListEmptyComponent, ListFooterComponent } =

View File

@@ -102,7 +102,7 @@ export default function Forum_ViewBeranda3() {
<NewWrapper
headerComponent={
<View style={{ paddingHorizontal: 16, paddingTop: 8 }}>
<View style={{ paddingTop: 8 }}>
<SearchInput
placeholder="Cari topik diskusi"
onChangeText={_.debounce((text) => setSearch(text), 500)}