diff --git a/src/components/AccountProfile.tsx b/src/components/AccountProfile.tsx index d8ccac6..60b547c 100644 --- a/src/components/AccountProfile.tsx +++ b/src/components/AccountProfile.tsx @@ -23,6 +23,7 @@ interface ProfileData { registrationDate: string; company: string; commissionRate: number; + agentCommissionRate: number; companyKey: string; address?: string; birthDate?: string; @@ -134,6 +135,7 @@ const AccountProfile: React.FC = ({ onNameChange }) => { registrationDate: data.create_dttm || "", company: data.company?.name || "", commissionRate: data.company?.commission || 0, + agentCommissionRate: data.company?.agent_commission || 0, companyKey: data.company?.key || "", }); if (onNameChange) { @@ -176,6 +178,7 @@ const AccountProfile: React.FC = ({ onNameChange }) => { company={profileData.company} companyKey={profileData.companyKey} commissionRate={profileData.commissionRate} + agentCommissionRate={profileData.agentCommissionRate} onCopy={handleCopy} /> {isEditing && ( diff --git a/src/components/AccountProfileCompany.tsx b/src/components/AccountProfileCompany.tsx index deaee34..9fef8b6 100644 --- a/src/components/AccountProfileCompany.tsx +++ b/src/components/AccountProfileCompany.tsx @@ -6,6 +6,7 @@ interface AccountProfileCompanyProps { company: string; companyKey: string; commissionRate: number; + agentCommissionRate: number; onCopy: () => void; } @@ -13,6 +14,7 @@ const AccountProfileCompany: React.FC = ({ company, companyKey, commissionRate, + agentCommissionRate, onCopy }) => (
@@ -32,9 +34,13 @@ const AccountProfileCompany: React.FC = ({
- +
{commissionRate}%
+
+ +
{agentCommissionRate}%
+
);