From 8809a012d5589af1aeb0761b6ed6174256633627 Mon Sep 17 00:00:00 2001 From: jackiettran <41605212+jackiettran@users.noreply.github.com> Date: Sun, 4 Jan 2026 01:30:30 -0500 Subject: [PATCH] Layout changes to Earnings page. Earnings Setup only shows if not set up yet --- frontend/src/pages/EarningsDashboard.tsx | 110 +++++------------------ 1 file changed, 20 insertions(+), 90 deletions(-) diff --git a/frontend/src/pages/EarningsDashboard.tsx b/frontend/src/pages/EarningsDashboard.tsx index 5c42a3f..78208e6 100644 --- a/frontend/src/pages/EarningsDashboard.tsx +++ b/frontend/src/pages/EarningsDashboard.tsx @@ -135,9 +135,9 @@ const EarningsDashboard: React.FC = () => { Manage your rental earnings and payment setup. Community Rentals charges a 10% Community Upkeep Fee to help keep us running.{" "} - Calculate what you can earn here. - - . + Calculate what you can earn here + {" "} + or learn how payouts work.

@@ -148,8 +148,24 @@ const EarningsDashboard: React.FC = () => { )} + {/* Earnings Setup - only show if not fully set up */} + {(!hasStripeAccount || !isOnboardingComplete) && ( +
+
+
Earnings Setup
+
+
+ setShowOnboarding(true)} + /> +
+
+ )} +
-
+
{/* Earnings Overview */}
@@ -294,92 +310,6 @@ const EarningsDashboard: React.FC = () => {
- - {/* Sidebar */} -
- {/* Earnings Setup Status */} -
-
-
Earnings Setup
-
-
- setShowOnboarding(true)} - /> -
-
- - {/* Quick Stats */} -
-
-
Quick Stats
-
-
-
- Completed Rentals: - {earningsData?.rentalsWithEarnings.length || 0} -
-
- Average Earning: - - $ - {earningsData?.rentalsWithEarnings.length - ? ( - (earningsData.totalEarnings || 0) / - earningsData.rentalsWithEarnings.length - ).toFixed(2) - : "0.00"} - -
-
- Community Upkeep Fee: - 10% -
-
-
- - {/* How Payouts Work */} -
-
-
How Payouts Work
-
-
-
- 1 -
- Transfer Initiated -

- Immediate when rental is marked complete -

-
-
-
- 2 -
- Funds in Stripe -

- Instant — view in your Stripe dashboard -

-
-
-
- 3 -
- Funds in Bank -

- 2-7 business days (Stripe's schedule) -

-
-
-
-

- Learn more in our FAQ -

-
-
-
{/* Stripe Connect Onboarding Modal */}