Add: - screens/Admin/Donation/funDonationUpdateStatus.ts - utils/countDownAndCondition.ts Fix: - app/(application)/(user)/donation/[id]/index.tsx - app/(application)/admin/donation/[id]/[status]/index.tsx - app/(application)/admin/donation/[id]/list-of-donatur.tsx - app/(application)/admin/donation/[id]/reject-input.tsx - app/(application)/admin/donation/index.tsx - app/(application)/admin/event/[id]/[status]/index.tsx - app/(application)/admin/voting/[id]/[status]/index.tsx - screens/Admin/Donation/BoxOfDonationStory.tsx - screens/Donation/BoxPublish.tsx - screens/Donation/ComponentBoxDetailData.tsx - service/api-admin/api-admin-donation.ts - service/api-client/api-master.ts - utils/colorBadge.ts git add . && git commit -m
66 lines
1.7 KiB
TypeScript
66 lines
1.7 KiB
TypeScript
import {
|
|
BaseBox,
|
|
DummyLandscapeImage,
|
|
Grid,
|
|
StackCustom,
|
|
TextCustom,
|
|
} from "@/components";
|
|
import { formatCurrencyDisplay } from "@/utils/formatCurrencyDisplay";
|
|
import React from "react";
|
|
import { View } from "react-native";
|
|
|
|
export default function Donation_ComponentBoxDetailData({
|
|
bottomSection,
|
|
data,
|
|
sisaHari,
|
|
reminder,
|
|
}: {
|
|
bottomSection?: React.ReactNode;
|
|
data: any;
|
|
sisaHari: number;
|
|
reminder: boolean;
|
|
}) {
|
|
|
|
return (
|
|
<>
|
|
<BaseBox>
|
|
<StackCustom>
|
|
<DummyLandscapeImage imageId={data?.imageId} />
|
|
<View>
|
|
<TextCustom bold size="large">
|
|
{data?.title || "-"}
|
|
</TextCustom>
|
|
{reminder ? (
|
|
<TextCustom bold color="red">
|
|
Waktu berakhir
|
|
</TextCustom>
|
|
) : (
|
|
<TextCustom>Sisa hari: {sisaHari}</TextCustom>
|
|
)}
|
|
</View>
|
|
|
|
<Grid>
|
|
<Grid.Col span={6}>
|
|
<View>
|
|
<TextCustom size="small">Target Dana</TextCustom>
|
|
<TextCustom truncate={2} size="large" bold color="yellow">
|
|
Rp. {formatCurrencyDisplay(data?.target) || "-"}
|
|
</TextCustom>
|
|
</View>
|
|
</Grid.Col>
|
|
<Grid.Col span={6}>
|
|
<View>
|
|
<TextCustom size="small">Kategori</TextCustom>
|
|
<TextCustom size="large" bold color="yellow">
|
|
{data?.DonasiMaster_Ketegori?.name || "-"}
|
|
</TextCustom>
|
|
</View>
|
|
</Grid.Col>
|
|
</Grid>
|
|
{bottomSection}
|
|
</StackCustom>
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|