feat: Complete Admin Phase 3 Donation screens migration to OS_Wrapper

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-04-15 11:42:28 +08:00
parent 115e9c49a2
commit e260ed546b
14 changed files with 804 additions and 44 deletions

View File

@@ -12,9 +12,9 @@ import {
Spacing,
StackCustom,
TextCustom,
ViewWrapper,
} from "@/components";
import { IconDot, IconList } from "@/components/_Icon/IconComponent";
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
import AdminButtonReject from "@/components/_ShareComponent/Admin/ButtonReject";
import AdminButtonReview from "@/components/_ShareComponent/Admin/ButtonReview";
@@ -177,7 +177,7 @@ export default function AdminDonationDetail() {
return (
<>
<ViewWrapper
<OS_Wrapper
headerComponent={
<AdminBackButtonAntTitle
title={`Detail Data`}
@@ -314,7 +314,7 @@ export default function AdminDonationDetail() {
/>
</StackCustom>
)}
</ViewWrapper>
</OS_Wrapper>
<DrawerCustom
isVisible={openDrawer}

View File

@@ -6,8 +6,8 @@ import {
ButtonCustom,
StackCustom,
TextCustom,
ViewWrapper,
} from "@/components";
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
import { GridSpan_4_8 } from "@/components/_ShareComponent/GridSpan_4_8";
import { useAuth } from "@/hooks/use-auth";
@@ -182,7 +182,7 @@ export default function AdminDonasiTransactionDetail() {
return (
<>
<ViewWrapper
<OS_Wrapper
headerComponent={<AdminBackButtonAntTitle title="Detail Transaksi" />}
footerComponent={buttonAction()}
>
@@ -197,7 +197,7 @@ export default function AdminDonasiTransactionDetail() {
))}
</StackCustom>
</BaseBox>
</ViewWrapper>
</OS_Wrapper>
</>
);
}

View File

@@ -4,8 +4,8 @@ import {
ButtonCustom,
StackCustom,
TextCustom,
ViewWrapper,
} from "@/components";
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
import { GridSpan_4_8 } from "@/components/_ShareComponent/GridSpan_4_8";
import { apiAdminDonationDisbursementOfFundsListById } from "@/service/api-admin/api-admin-donation";
@@ -59,7 +59,7 @@ export default function AdminDonationDetailDisbursementOfFunds() {
];
return (
<>
<ViewWrapper
<OS_Wrapper
headerComponent={
<AdminBackButtonAntTitle title="Detail Pencairan Dana" />
}
@@ -83,7 +83,7 @@ export default function AdminDonationDetailDisbursementOfFunds() {
>
Cek Bukti Transaksi
</ButtonCustom>
</ViewWrapper>
</OS_Wrapper>
</>
);
}

View File

@@ -10,8 +10,8 @@ import {
TextAreaCustom,
TextCustom,
TextInputCustom,
ViewWrapper,
} from "@/components";
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
import DIRECTORY_ID from "@/constants/directory-id";
import { useAuth } from "@/hooks/use-auth";
@@ -142,7 +142,9 @@ export default function AdminDonationDisbursementOfFunds() {
);
return (
<ViewWrapper
<OS_Wrapper
enableKeyboardHandling
contentPaddingBottom={250}
headerComponent={<AdminBackButtonAntTitle title="Pencairan Dana" />}
footerComponent={buttonSubmit}
>
@@ -228,6 +230,6 @@ export default function AdminDonationDisbursementOfFunds() {
<Spacing />
<Image source={image?.uri} style={{ width: "100%", height: 300 }} />
<Spacing />
</ViewWrapper>
</OS_Wrapper>
);
}

View File

@@ -3,8 +3,8 @@ import {
AlertDefaultSystem,
BoxButtonOnFooter,
TextAreaCustom,
ViewWrapper,
} from "@/components";
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
import AdminButtonReject from "@/components/_ShareComponent/Admin/ButtonReject";
import { useAuth } from "@/hooks/use-auth";
@@ -116,7 +116,9 @@ export default function AdminDonationRejectInput() {
return (
<>
<ViewWrapper
<OS_Wrapper
enableKeyboardHandling
contentPaddingBottom={250}
footerComponent={buttonSubmit}
headerComponent={<AdminBackButtonAntTitle title="Penolakan Donasi" />}
>
@@ -128,7 +130,7 @@ export default function AdminDonationRejectInput() {
showCount
maxLength={1000}
/>
</ViewWrapper>
</OS_Wrapper>
</>
);
}