Add: - GridViewCustomSpan - GridView_4_4_4 Fix: - BackButtonAntTitle: penambahan new component - SelectCustom: penambahan container style Admin Donasi Add: - admin/donation/[id] Fix: - admin/donation/[status]/status Admin Fix: perubahan nama halaman sesuai fitur ### No Issue
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
import {
|
|
AlertDefaultSystem,
|
|
BoxButtonOnFooter,
|
|
TextAreaCustom,
|
|
ViewWrapper,
|
|
} from "@/components";
|
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
|
import AdminButtonReject from "@/components/_ShareComponent/Admin/ButtonReject";
|
|
import { router, useLocalSearchParams } from "expo-router";
|
|
import { useState } from "react";
|
|
|
|
export default function AdminEventRejectInput() {
|
|
const { id } = useLocalSearchParams();
|
|
const [value, setValue] = useState(id as string);
|
|
const buttonSubmit = (
|
|
<BoxButtonOnFooter>
|
|
<AdminButtonReject
|
|
title="Reject"
|
|
onReject={() =>
|
|
AlertDefaultSystem({
|
|
title: "Reject",
|
|
message: "Apakah anda yakin ingin menolak data ini?",
|
|
textLeft: "Batal",
|
|
textRight: "Ya",
|
|
onPressLeft: () => {
|
|
router.back();
|
|
},
|
|
onPressRight: () => {
|
|
console.log("value:", value);
|
|
router.replace(`/admin/event/reject/status`);
|
|
},
|
|
})
|
|
}
|
|
/>
|
|
</BoxButtonOnFooter>
|
|
);
|
|
|
|
return (
|
|
<>
|
|
<ViewWrapper
|
|
footerComponent={buttonSubmit}
|
|
headerComponent={<AdminBackButtonAntTitle title="Penolakan Event" />}
|
|
>
|
|
<TextAreaCustom
|
|
value={value}
|
|
onChangeText={setValue}
|
|
placeholder="Masukan alasan"
|
|
required
|
|
showCount
|
|
maxLength={1000}
|
|
/>
|
|
</ViewWrapper>
|
|
</>
|
|
);
|
|
}
|