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)}
`; @@ -248,7 +249,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 )} when this rental completes, you need to set up your earnings account.

@@ -274,7 +275,7 @@ class RentalFlowEmailService { stripeSection = `

✓ 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.

@@ -1071,7 +1075,7 @@ class RentalFlowEmailService { stripeSection = `

✓ 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.

@@ -1122,14 +1126,14 @@ class RentalFlowEmailService { error: emailError.message, stack: emailError.stack, ownerEmail: owner.email, - rentalId: rental.id + rentalId: rental.id, }); } } catch (error) { logger.error("Error sending rental completion emails", { error: error.message, stack: error.stack, - rentalId: rental?.id + rentalId: rental?.id, }); } diff --git a/frontend/src/components/StripeConnectOnboarding.tsx b/frontend/src/components/StripeConnectOnboarding.tsx index a445d39..987e916 100644 --- a/frontend/src/components/StripeConnectOnboarding.tsx +++ b/frontend/src/components/StripeConnectOnboarding.tsx @@ -46,7 +46,8 @@ const StripeConnectOnboarding: React.FC = ({ colorBackground: "#ffffff", colorText: "#212529", colorDanger: "#dc3545", - fontFamily: "system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif", + fontFamily: + "system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif", fontSizeBase: "20px", borderRadius: "8px", spacingUnit: "4px", @@ -120,11 +121,17 @@ const StripeConnectOnboarding: React.FC = ({ style={{ backgroundColor: "rgba(0,0,0,0.5)" }} tabIndex={-1} > -
+
- {step === "onboarding" ? "Complete Your Earnings Setup" : "Set Up Earnings"} + {step === "onboarding" + ? "Complete Your Earnings Setup" + : "Start Receiving Earnings"}