change status order rate

This commit is contained in:
hamid zarghami
2025-12-25 10:22:19 +03:30
parent f532a1514f
commit 91b5a61fbd
2 changed files with 4 additions and 8 deletions
@@ -1,12 +1,12 @@
'use client';
import { ef } from '@/lib/helpers/utfNumbers';
import { ArrowLeft, Trash } from 'iconsax-react';
import { ArrowLeft } from 'iconsax-react';
import { useRouter } from 'next/navigation';
import React from 'react'
import Image from 'next/image';
import { useTranslation } from 'react-i18next';
import { useGetNotifications, useDeleteNotification, useReadAllNotifications } from './hooks/useNotificationData';
import { useGetNotifications, useReadAllNotifications } from './hooks/useNotificationData';
import type { Notification } from './types/Types';
import { useGetNotificationsCount } from '../../(Main)/hooks/useMenuData';
import Prompt from '@/components/utils/Prompt';
@@ -34,7 +34,6 @@ export default function NotificationsIndex({ }: Props) {
const { t } = useTranslation('notifications')
const router = useRouter();
const { data, isLoading } = useGetNotifications();
const { mutate: deleteNotification } = useDeleteNotification();
const { mutate: readAllNotifications } = useReadAllNotifications();
const { data: notificationsCount } = useGetNotificationsCount();
const [showReadAllConfirm, setShowReadAllConfirm] = React.useState(false);
@@ -43,10 +42,6 @@ export default function NotificationsIndex({ }: Props) {
return data?.data ?? [];
}, [data?.data]);
const handleDelete = (id: string) => {
deleteNotification(id);
};
const handleReadAll = (e: React.MouseEvent) => {
e?.preventDefault();
e?.stopPropagation();