From 6a929e54fe1cd8a62d16a1cf768f01b06899f4b5 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 6 Jan 2026 10:03:27 +0330 Subject: [PATCH] remove address from restaurant list --- src/pages/dmenu/restaurant/List.tsx | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/src/pages/dmenu/restaurant/List.tsx b/src/pages/dmenu/restaurant/List.tsx index 4b92cea..cb36ec6 100644 --- a/src/pages/dmenu/restaurant/List.tsx +++ b/src/pages/dmenu/restaurant/List.tsx @@ -5,7 +5,7 @@ import PageLoading from '../../../components/PageLoading' import Td from '../../../components/Td' import { RestaurantType, RestaurantsResponse } from '../types/Types' import moment from 'moment-jalaali' -import { Copy, Edit } from 'iconsax-react' +import { Edit } from 'iconsax-react' import { toast } from 'react-toastify' import Button from '../../../components/Button' import RestaurantAdminsModal from './components/RestaurantAdminsModal' @@ -39,17 +39,6 @@ const RestaurantsList: FC = () => { setSelectedRestaurantId('') } - const handleCopyAddress = async (address: string | null) => { - if (!address) return - - try { - await navigator.clipboard.writeText(address) - toast.success('کپی شد') - } catch { - toast.error('خطا در کپی کردن') - } - } - const calculateDaysRemaining = (endDate: string): string => { const end = moment(endDate) const now = moment() @@ -94,7 +83,6 @@ const RestaurantsList: FC = () => { - @@ -111,19 +99,6 @@ const RestaurantsList: FC = () => { - -
- {item.address || '-'} - {item.address && ( - handleCopyAddress(item.address)} - /> - )} -
-