From 8b9b92d84844a495079e7e4026d3600ff84beaf1 Mon Sep 17 00:00:00 2001 From: jackiettran <41605212+jackiettran@users.noreply.github.com> Date: Wed, 7 Jan 2026 22:37:41 -0500 Subject: [PATCH] Text changes with earnings --- .../email/domain/RentalFlowEmailService.js | 34 +++++---- .../components/StripeConnectOnboarding.tsx | 69 +++++++++---------- frontend/src/pages/EarningsDashboard.tsx | 5 +- 3 files changed, 52 insertions(+), 56 deletions(-) diff --git a/backend/services/email/domain/RentalFlowEmailService.js b/backend/services/email/domain/RentalFlowEmailService.js index 4a93b4f..ac46b4e 100644 --- a/backend/services/email/domain/RentalFlowEmailService.js +++ b/backend/services/email/domain/RentalFlowEmailService.js @@ -67,7 +67,8 @@ class RentalFlowEmailService { const variables = { ownerName: owner.firstName, - renterName: `${renter.firstName} ${renter.lastName}`.trim() || "A renter", + renterName: + `${renter.firstName} ${renter.lastName}`.trim() || "A renter", itemName: rental.item?.name || "your item", startDate: rental.startDateTime ? new Date(rental.startDateTime).toLocaleString("en-US", { @@ -227,15 +228,15 @@ class RentalFlowEmailService {
| Total Rental Amount | -\\$${totalAmount.toFixed(2)} | +$${totalAmount.toFixed(2)} |
|---|---|---|
| Community Upkeep Fee (10%) | --\\$${platformFee.toFixed(2)} | +-$${platformFee.toFixed(2)} |
| Your Payout | -\\$${payoutAmount.toFixed(2)} | +$${payoutAmount.toFixed(2)} |
⚠️ Action Required: Set Up Your Earnings Account
-To receive your payout of \\$${payoutAmount.toFixed(
+ To receive your payout of $${payoutAmount.toFixed(
2
)} when this rental completes, you need to set up your earnings account.
✓ Earnings Account Active
-Your earnings account is set up. You'll automatically receive \\$${payoutAmount.toFixed( +
Your earnings account is set up. You'll automatically receive $${payoutAmount.toFixed( 2 )} when this rental completes.
View your earnings dashboard →
@@ -323,7 +324,10 @@ class RentalFlowEmailService { htmlContent ); } catch (error) { - console.error("Failed to send rental approval confirmation email:", error); + console.error( + "Failed to send rental approval confirmation email:", + error + ); return { success: false, error: error.message }; } } @@ -1002,7 +1006,7 @@ class RentalFlowEmailService { error: emailError.message, stack: emailError.stack, renterEmail: renter.email, - rentalId: rental.id + rentalId: rental.id, }); } @@ -1021,15 +1025,15 @@ class RentalFlowEmailService {| Total Rental Amount | -\\$${totalAmount.toFixed(2)} | +$${totalAmount.toFixed(2)} |
|---|---|---|
| Community Upkeep Fee (10%) | --\\$${platformFee.toFixed(2)} | +-$${platformFee.toFixed(2)} |
| Your Payout | -\\$${payoutAmount.toFixed(2)} | +$${payoutAmount.toFixed(2)} |
@@ -1045,7 +1049,7 @@ class RentalFlowEmailService { stripeSection = `
⚠️ Action Required: Set Up Your Earnings Account
-To receive your payout of \\$${payoutAmount.toFixed(
+ To receive your payout of $${payoutAmount.toFixed(
2
)}, you need to set up your earnings account.
✓ Payout Initiated
-Your earnings of \\$${payoutAmount.toFixed(
+ Your earnings of $${payoutAmount.toFixed(
2
)} have been transferred to your Stripe account. Funds typically reach your bank within 2-7 business days.
- {step === "onboarding" ? "Complete Your Earnings Setup" : "Set Up Earnings"}
+ {step === "onboarding"
+ ? "Complete Your Earnings Setup"
+ : "Start Receiving Earnings"}