more button remove + remove all logs
This commit is contained in:
@@ -3,7 +3,7 @@ import { FC, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Table from '../../components/Table';
|
||||
import { ColumnType } from '../../components/types/TableTypes';
|
||||
import { InfoCircle, More, Refresh2, Trash, Edit, Send } from 'iconsax-react';
|
||||
import { InfoCircle, Refresh2, Trash, Edit, Send } from 'iconsax-react';
|
||||
import { RowActionItem } from '../../components/RowActionsDropdown';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useGetDrafts } from './hooks/useDraftData';
|
||||
@@ -145,7 +145,7 @@ const List: FC = () => {
|
||||
};
|
||||
|
||||
const tableActions = (
|
||||
<div className='flex items-center gap-2 md:gap-4'>
|
||||
<div className='flex items-center gap-4 md:gap-4'>
|
||||
<div className="flex items-center gap-2">
|
||||
<Checkbox
|
||||
checked={selectAll}
|
||||
@@ -159,7 +159,6 @@ const List: FC = () => {
|
||||
className={`cursor-pointer ${isFetching ? 'animate-spin-reverse' : ''}`}
|
||||
onClick={() => refetch()}
|
||||
/>
|
||||
<More size={18} color='black' className='rotate-90 cursor-pointer' />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -218,8 +217,6 @@ const List: FC = () => {
|
||||
const handleEditSelected = () => {
|
||||
if (selectedMessages.length === 1) {
|
||||
navigate(`/draft/edit/${selectedMessages[0].id}`);
|
||||
} else {
|
||||
console.log('ویرایش چندین پیشنویس انتخاب شده:', selectedMessages.map(m => m.id));
|
||||
}
|
||||
setSelectedMessages([]);
|
||||
setSelectAll(false);
|
||||
|
||||
Reference in New Issue
Block a user