Skip to content

Commit 14b5406

Browse files
authored
Merge pull request #145 from bryanparmelee/bulk-frontend
Bulk frontend
2 parents 73d6997 + bda52e2 commit 14b5406

File tree

15 files changed

+441
-414
lines changed

15 files changed

+441
-414
lines changed

src/api/firebase-donations.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,10 @@ export async function addDonation(newDonation: DonationBody) {
295295
}
296296

297297
export async function addBulkDonation(newDonations: DonationBody[]) {
298-
if (newDonations.length === 1) addDonation(newDonations[0]);
298+
if (newDonations.length === 1) {
299+
await addDonation(newDonations[0]);
300+
return;
301+
}
299302
try {
300303
const userId: string = await getUserId();
301304
const bulkDonationsRef = doc(collection(db, BULK_DONATIONS_COLLECTION));

src/app/bulk-donate/page.tsx

Lines changed: 0 additions & 237 deletions
This file was deleted.

src/app/donate/Donate.module.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@
4747
border: 1px solid black;
4848
}
4949

50+
.btn--group {
51+
width: 100%;
52+
display: flex;
53+
flex-direction: column;
54+
margin: 0px auto;
55+
padding: 1rem;
56+
gap: 12px;
57+
}
58+
5059
/* Tablets */
5160
@media screen and (min-width: 480px) {
5261
.form {
@@ -71,6 +80,9 @@
7180

7281
.form__section--bottom {
7382
grid-area: bottom;
83+
display: flex;
84+
flex-direction: column;
85+
gap: 8px;
7486
}
7587
}
7688

0 commit comments

Comments
 (0)