detail customer

This commit is contained in:
hamid zarghami
2025-11-05 14:05:24 +03:30
parent 7f96669bc7
commit 2b1b2daacf
9 changed files with 576 additions and 2 deletions
+8 -2
View File
@@ -5,6 +5,8 @@ import { Add, Eye } from 'iconsax-react'
import { type FC, useState } from 'react'
import type { RowDataType, ActionType } from '@/components/types/TableTypes'
import type { FilterValues } from '@/components/Filters'
import { Pages } from '@/config/Pages'
import { Link } from 'react-router-dom'
interface CustomerData extends RowDataType {
id: number
@@ -100,8 +102,12 @@ const CustomersList: FC = () => {
{
key: 'details',
title: 'جزییات',
render: () => {
return <Eye size={20} color="#8C90A3" />
render: (item: CustomerData) => {
return (
<Link to={Pages.customers.detail + item.id}>
<Eye size={20} color="#8C90A3" />
</Link>
)
},
},
]