- {stats.whoInvitedMe.slice(0, 8)}...{stats.whoInvitedMe.slice(-6)}
-
- ) : (
-
- No referrer
+
+ {loadingApprovals ? '...' : pendingApprovals.length}
+
+ {stats?.whoInvitedMe && (
+
+ You were invited by {stats.whoInvitedMe.slice(0, 8)}...{stats.whoInvitedMe.slice(-6)}
)}
@@ -194,82 +193,26 @@ export const ReferralDashboard: React.FC = () => {
- {/* Pending Approvals */}
- {(pendingApprovals.length > 0 || loadingApprovals) && (
-
-
-
-
- Pending Approvals ({pendingApprovals.length})
-
-
- These users listed you as their referrer and are waiting for your approval
-
-
-
- {loadingApprovals ? (
-
-
-
- ) : (
-
- {pendingApprovals.map((approval) => (
-
-
-
-
-
-
-
- {approval.applicantAddress.slice(0, 10)}...{approval.applicantAddress.slice(-8)}
-
-
-
- Pending Referral
-
-
-
-
-
-
- ))}
-
- )}
-
-
- )}
-
- {/* My Referrals List */}
+ {/* My Invitations - Combined pending + confirmed */}
- My Referrals ({myReferrals.length})
+ My Invitations ({pendingApprovals.length + myReferrals.length})
- Users you have successfully referred
+ People you invited — approve pending ones to complete step 2
- {myReferrals.length === 0 ? (
+ {loadingApprovals ? (
+
+
+
+ ) : pendingApprovals.length === 0 && myReferrals.length === 0 ? (
-
No referrals yet
+
No invitations yet
Invite friends to start building your network
@@ -283,6 +226,44 @@ export const ReferralDashboard: React.FC = () => {
) : (
+ {/* Pending approvals first */}
+ {pendingApprovals.map((approval) => (
+
+
+
+
+
+
+
+ {approval.applicantAddress.slice(0, 10)}...{approval.applicantAddress.slice(-8)}
+
+
+
+ Pending — Waiting Your Approval
+
+
+
+
+
+
+ ))}
+
+ {/* Confirmed referrals */}
{myReferrals.map((address, index) => (
{
>
-
- {index + 1}
-
+
{address.slice(0, 10)}...{address.slice(-8)}
-
- KYC Completed
+
+
+ Confirmed
+
- +{index < 10 ? 10 : index < 50 ? 5 : index < 100 ? 4 : 0} points
+ +{index < 10 ? 10 : index < 50 ? 5 : index < 100 ? 4 : 0} pts
))}