From 4e0409949c6e6cf7e65a39bf68e58981a664fb8e Mon Sep 17 00:00:00 2001 From: Redsandyg Date: Tue, 10 Jun 2025 14:16:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B5=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D0=B5=20agentCommissionRate=20=D0=B2=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D1=8B=20AccountProfi?= =?UTF-8?q?le=20=D0=B8=20AccountProfileCompany=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D0=BD=D1=82=D0=B0=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=B8=D1=81=D1=81=D0=B8=D0=B8=20=D0=B0=D0=B3?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0.=20=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D1=81=D0=BE=D0=BE=D1=82=D0=B2=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=82=D0=B2=D1=83=D1=8E=D1=89=D0=B8=D0=B5=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BA=D0=B8=20=D0=B8=20=D0=B7=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=B8=D0=BD=D1=82=D0=B5?= =?UTF-8?q?=D1=80=D1=84=D0=B5=D0=B9=D1=81=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AccountProfile.tsx | 3 +++ src/components/AccountProfileCompany.tsx | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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}%
+
);