Skip to content

Commit

Permalink
refunded donations
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdenio committed Feb 7, 2024
1 parent ccc71d3 commit 3edb285
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/transaction/types/DonationTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -21,7 +22,7 @@ export default function DonationTransaction({

return (
<View>
<TransactionTitle>
<TransactionTitle badge={<Badge color={palette.warning}>Refunded</Badge>}>
{renderMoney(transaction.amount_cents)} <Muted>donation from</Muted>{" "}
{donation.donor.name}
</TransactionTitle>
Expand Down
1 change: 1 addition & 0 deletions src/lib/types/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export interface Donation {
recurring_donor_id?: string;
};
donated_at: string;
refunded: boolean;
}

export interface TransactionDonation extends TransactionBase {
Expand Down
1 change: 1 addition & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const palette = {
smoke: "#e0e6ed",
info: "#338eda",
success: "#33d6a6",
warning: "#ff8c37",
};

export const theme: Theme = {
Expand Down

0 comments on commit 3edb285

Please sign in to comment.