navigate to editor with id

This commit is contained in:
hamid zarghami
2026-03-10 11:43:45 +03:30
parent d3ad3c0178
commit c9eccecb61
3 changed files with 14 additions and 8 deletions
@@ -2,6 +2,8 @@ import { type FC } from 'react'
import { Edit, Eye, Share, Trash } from 'iconsax-react'
import type { CatalogItemType } from '../types/Types'
import moment from 'moment-jalaali'
import { Link } from 'react-router-dom'
import { Paths } from '@/config/Paths'
type Props = {
item: CatalogItemType
@@ -25,9 +27,11 @@ const CatalogueItem: FC<Props> = ({ item }) => {
<div className='size-6 bg-[#EAECF4] rounded-md flex justify-center items-center'>
<Eye size={18} color='#0047FF' />
</div>
<div className='size-6 bg-[#EAECF4] rounded-md flex justify-center items-center'>
<Edit size={18} color='#0047FF' />
</div>
<Link to={Paths.editor + `/id=${item.id}`}>
<div className='size-6 bg-[#EAECF4] rounded-md flex justify-center items-center'>
<Edit size={18} color='#0047FF' />
</div>
</Link>
<div className='size-6 bg-[#EAECF4] rounded-md flex justify-center items-center'>
<Share size={18} color='#000' />
</div>