Skip to content

Commit fc16053

Browse files
authored
Rename donationFilter.tsx to DonationListFilter.tsx (#147)
* Rename donationFilter.tsx to DonationListFilter.tsx * resolved donation filter and donation list filter
1 parent 09fa8e0 commit fc16053

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

client/src/components/donations/DonationFilter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function DonationFilter({
131131
value={newDonor}
132132
onChange={(e) => setNewDonor(e.target.value)}
133133
onKeyDown={(e) => {
134-
if (e.key === "Enter") handleAdd();
134+
if (e.key === "Enter") handleAddDonor();
135135
if (e.key === "Escape") onAddClose();
136136
}}
137137
/>
@@ -146,4 +146,4 @@ export function DonationFilter({
146146
</MenuList>
147147
</Menu>
148148
);
149-
}
149+
}

client/src/components/donations/Donations.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ import {
5151
import { HoverCheckbox } from "../hoverCheckbox/hoverCheckbox";
5252
import EditDrawer from "./editDonationDrawer";
5353
import { Donation } from "./types";
54-
import { all } from "axios";
5554
import { downloadCSV } from "../../utils/downloadCSV";
56-
import { LoadingWheel } from ".././loading/loading.tsx"
57-
import { DonationFilter, DonationListFilter } from "./DonationFilter.tsx"
55+
import { LoadingWheel } from ".././loading/loading.tsx";
56+
import { DonationFilter } from "./DonationFilter.tsx";
57+
import { DonationListFilter } from "./DonationListFilter.tsx";
5858
import AddDonationsDrawer from "./addDonations/addDonationsDrawer.tsx"
59-
import { set } from "react-hook-form";
6059

6160

6261
export const Donations = () => {

0 commit comments

Comments
 (0)