feat: Complete Admin Phase 7 Investment screens + fix Admin Phase 8, 10 documentation + migrate dashboard & maps to OS_Wrapper
- Migrate admin/investment/[id]/[status]/index.tsx to OS_Wrapper (detail with pull-to-refresh) - Migrate admin/investment/[id]/[status]/transaction-detail.tsx to OS_Wrapper (transaction detail with footer) - Migrate admin/investment/[id]/reject-input.tsx to OS_Wrapper with enableKeyboardHandling - Migrate admin/investment/index.tsx to OS_Wrapper (dashboard) - Migrate ScreenInvestmentListOfInvestor.tsx to OS_Wrapper - Migrate ScreenInvestmentStatus.tsx to OS_Wrapper - Migrate admin/dashboard.tsx to OS_Wrapper - Migrate admin/maps.tsx to OS_Wrapper - Fix TASK-005 documentation: reorder Admin Phases 1-10, update tracking table - Mark Admin Phase 3 (Donation) as Complete (12 files verified) - Add Admin Phase 10 (Dashboard & Maps) documentation - Update grand total: 178/~184 files (~97% complete) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { SelectCustom } from "@/components";
|
||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||
import NewWrapper from "@/components/_ShareComponent/NewWrapper";
|
||||
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
|
||||
import { PAGINATION_DEFAULT_TAKE } from "@/constants/constans-value";
|
||||
import { createPaginationComponents } from "@/helpers/paginationHelpers";
|
||||
import { usePagination } from "@/hooks/use-pagination";
|
||||
@@ -79,13 +79,13 @@ export function Admin_ScreenInvestmentListOfInvestor() {
|
||||
allowClear
|
||||
/>
|
||||
),
|
||||
[master, selectValue]
|
||||
[master, selectValue],
|
||||
);
|
||||
|
||||
// Header component dengan back button dan select filter
|
||||
const headerComponent = useMemo(
|
||||
() => <AdminBackButtonAntTitle newComponent={searchComponent} />,
|
||||
[searchComponent]
|
||||
[searchComponent],
|
||||
);
|
||||
|
||||
// Render item untuk daftar investor
|
||||
@@ -93,7 +93,7 @@ export function Admin_ScreenInvestmentListOfInvestor() {
|
||||
({ item, index }: { item: any; index: number }) => (
|
||||
<Admin_BoxInvestmentListOfInvestor key={index} item={item} />
|
||||
),
|
||||
[]
|
||||
[],
|
||||
);
|
||||
|
||||
// Buat komponen-komponen pagination
|
||||
@@ -111,7 +111,7 @@ export function Admin_ScreenInvestmentListOfInvestor() {
|
||||
});
|
||||
|
||||
return (
|
||||
<NewWrapper
|
||||
<OS_Wrapper
|
||||
listData={pagination.listData}
|
||||
renderItem={renderItem}
|
||||
keyExtractor={(item: any) => item.id?.toString() || `fallback-${item.id}`}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { SearchInput } from "@/components";
|
||||
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||
import NewWrapper from "@/components/_ShareComponent/NewWrapper";
|
||||
import {
|
||||
PAGINATION_DEFAULT_TAKE,
|
||||
} from "@/constants/constans-value";
|
||||
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
|
||||
import { PAGINATION_DEFAULT_TAKE } from "@/constants/constans-value";
|
||||
import { createPaginationComponents } from "@/helpers/paginationHelpers";
|
||||
import { usePagination } from "@/hooks/use-pagination";
|
||||
import { apiAdminInvestment } from "@/service/api-admin/api-admin-investment";
|
||||
@@ -88,7 +86,7 @@ export function Admin_ScreenInvestmentStatus() {
|
||||
});
|
||||
|
||||
return (
|
||||
<NewWrapper
|
||||
<OS_Wrapper
|
||||
listData={pagination.listData}
|
||||
renderItem={renderItem}
|
||||
keyExtractor={(item: any) => item.id?.toString() || `fallback-${item.id}`}
|
||||
|
||||
Reference in New Issue
Block a user