diff --git a/src/components/transaction/types/DonationTransaction.tsx b/src/components/transaction/types/DonationTransaction.tsx index 028ed92..e3bb3ff 100644 --- a/src/components/transaction/types/DonationTransaction.tsx +++ b/src/components/transaction/types/DonationTransaction.tsx @@ -7,6 +7,7 @@ import { StackParamList } from "../../../lib/NavigatorParamList"; import { TransactionDonation } from "../../../lib/types/Transaction"; import { palette } from "../../../theme"; import { renderMoney } from "../../../util"; +import Badge from "../../Badge"; import TransactionDetails, { descriptionDetail } from "../TransactionDetails"; import TransactionTitle, { Muted } from "../TransactionTitle"; @@ -21,7 +22,7 @@ export default function DonationTransaction({ return ( - + Refunded}> {renderMoney(transaction.amount_cents)} donation from{" "} {donation.donor.name} diff --git a/src/lib/types/Transaction.ts b/src/lib/types/Transaction.ts index 39eadb1..dd94107 100644 --- a/src/lib/types/Transaction.ts +++ b/src/lib/types/Transaction.ts @@ -56,6 +56,7 @@ export interface Donation { recurring_donor_id?: string; }; donated_at: string; + refunded: boolean; } export interface TransactionDonation extends TransactionBase { diff --git a/src/theme.ts b/src/theme.ts index 914e9e1..47ec0f0 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -9,6 +9,7 @@ export const palette = { smoke: "#e0e6ed", info: "#338eda", success: "#33d6a6", + warning: "#ff8c37", }; export const theme: Theme = {