update a resutarant

This commit is contained in:
hamid zarghami
2026-01-06 09:10:51 +03:30
parent 9af21acb90
commit 37717d5f05
8 changed files with 262 additions and 3 deletions
+12 -2
View File
@@ -5,11 +5,13 @@ import PageLoading from '../../../components/PageLoading'
import Td from '../../../components/Td'
import { RestaurantType, RestaurantsResponse } from '../types/Types'
import moment from 'moment-jalaali'
import { Copy } from 'iconsax-react'
import { Copy, Edit } from 'iconsax-react'
import { toast } from 'react-toastify'
import Button from '../../../components/Button'
import RestaurantAdminsModal from './components/RestaurantAdminsModal'
import Pagination from '../../../components/Pagination'
import { Link } from 'react-router-dom'
import { Pages } from '../../../config/Pages'
const RestaurantsList: FC = () => {
@@ -106,7 +108,15 @@ const RestaurantsList: FC = () => {
</div>
</Td>
<Td text={''}>
<div className='flex items-center gap-2'>
<div className='flex items-center gap-4'>
<Link
to={Pages.dmenu.restaurants.update + item.id}
>
<Edit
size={18}
color='#8C90A3'
/>
</Link>
<Button
className='w-fit px-4'
onClick={() => handleOpenAdminsModal(item.id)}