navigate to editor with id
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user