detail customer
This commit is contained in:
@@ -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>
|
||||
)
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user