referer and finance

This commit is contained in:
hamid zarghami
2025-04-30 16:24:37 +03:30
parent 46a92770ae
commit 702e66c328
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ const CustomerList: FC = () => {
return ( return (
<tr key={item.id} className='tr'> <tr key={item.id} className='tr'>
<Td text={item.firstName + ' ' + item.lastName} /> <Td text={item.firstName + ' ' + item.lastName} />
<Td text={'شرکت داناک'} /> <Td text={item?.legalUser?.registrationName} />
<Td text={item.email ? item.email : ''} /> <Td text={item.email ? item.email : ''} />
<Td text={item.subscriptionsCount} /> <Td text={item.subscriptionsCount} />
<Td text={''}> <Td text={''}>
@@ -13,6 +13,9 @@ export type CustomerItemType = {
createdAt: string; createdAt: string;
// Add other properties of role if needed // Add other properties of role if needed
}; };
legalUser: {
registrationName: string;
};
subscriptions: unknown[]; subscriptions: unknown[];
tickets: unknown[]; tickets: unknown[];
updatedAt: string; updatedAt: string;
+1 -1
View File
@@ -38,7 +38,7 @@ const ReferTicket: FC<Props> = ({ refetch }) => {
<div className="mt-4"> <div className="mt-4">
{ {
getUsers.data?.data?.users?.map((item: UserItemType) => ( getUsers.data?.data?.users?.map((item: UserItemType) => (
<div key={item.id} className='flex gap-2 py-2 items-center'> <div key={item.id} className='flex gap-2 items-center'>
<div> <div>
<CheckBoxComponent <CheckBoxComponent
checked={userId === item.id} checked={userId === item.id}