added resubmit icon

This commit is contained in:
Malini 2026-02-05 14:31:48 +05:30
parent 0f279bbded
commit 604f816289
2 changed files with 38 additions and 19 deletions

View File

@ -5,6 +5,7 @@ import Footer from '../common/Footer';
import HeaderBar from '@/components/layout/HeaderBar'; import HeaderBar from '@/components/layout/HeaderBar';
import DetailedOverview from '@/components/overview/DetailedOverview'; import DetailedOverview from '@/components/overview/DetailedOverview';
import { deleteDraftSubmission } from '@/services/submissions/submissionService'; import { deleteDraftSubmission } from '@/services/submissions/submissionService';
import { HiMiniArrowPathRoundedSquare } from "react-icons/hi2";
const searchIconSrc = '/assets/images/material-symbols_search-rounded.svg'; const searchIconSrc = '/assets/images/material-symbols_search-rounded.svg';
const pencilIconSrc = '/assets/images/PencilSimple.svg'; const pencilIconSrc = '/assets/images/PencilSimple.svg';
@ -284,21 +285,31 @@ const handleDeleteDraft = async (e, submission) => {
</button> </button>
</> </>
) : ( ) : (
<button <div className="flex items-center gap-5">
onClick={() => handleViewDetails(item)} <button
className="text-[#9E792B] hover:text-[#7b5f22] font-medium" onClick={() => handleViewDetails(item)}
title="View Details" className="text-[#9E792B] hover:text-[#7b5f22] font-medium"
> title="View Details"
<img >
src="/assets/images/Eye.svg" <img
alt="View Details" src="/assets/images/Eye.svg"
className="w-5 h-5 text-[#92722A] opacity-60 hover:opacity-100 transition-opacity" alt="View Details"
style={{ filter: 'invert(36%) sepia(49%) saturate(680%) hue-rotate(1deg) brightness(89%) contrast(91%)' }} className="w-5 h-5 text-[#92722A] opacity-60 hover:opacity-100 transition-opacity"
style={{ filter: 'invert(36%) sepia(49%) saturate(680%) hue-rotate(1deg) brightness(89%) contrast(91%)' }}
/> />
</button> </button>
{item.status.toLowerCase() === 'rejected' && (
<button
onClick={() => handleResubmit(item)}
className="text-[#9E792B] hover:text-[#7b5f22] font-medium"
title="Resubmit"
>
<HiMiniArrowPathRoundedSquare className="w-5 h-5 text-[#92722A] opacity-60 hover:opacity-100 transition-opacity" />
</button>
)}
</div>
)} )}
</div> </div>
]; ];

View File

@ -14,6 +14,7 @@ const pencilInactiveSrc = '/assets/images/pencilsimple-inactive.svg';
const deleteIconSrc = '/assets/images/Trash - active.svg'; const deleteIconSrc = '/assets/images/Trash - active.svg';
const trashInactiveSrc = '/assets/images/Trash - Inactive.svg'; const trashInactiveSrc = '/assets/images/Trash - Inactive.svg';
import { deleteDraftSubmission } from '@/services/submissions/submissionService'; import { deleteDraftSubmission } from '@/services/submissions/submissionService';
import { HiMiniArrowPathRoundedSquare } from 'react-icons/hi2';
const statusStyles = { const statusStyles = {
approved: 'text-[#2F663C] bg-[#F3FAF4]', approved: 'text-[#2F663C] bg-[#F3FAF4]',
submitted: 'text-[#003CFF] bg-[#E7F5FF]', submitted: 'text-[#003CFF] bg-[#E7F5FF]',
@ -183,12 +184,19 @@ const handleDeleteDraft = async (e, record) => {
</button> </button>
</div> </div>
) : ) :
<img <div className="flex items-center gap-4">
src="/assets/images/Eye.svg" <img
alt="View Details" src="/assets/images/Eye.svg"
className="w-5 h-5 text-[#92722A] opacity-60 hover:opacity-100 transition-opacity" alt="View Details"
style={{ filter: 'invert(36%) sepia(49%) saturate(680%) hue-rotate(1deg) brightness(89%) contrast(91%)' }} className="w-5 h-5 text-[#92722A] opacity-60 hover:opacity-100 transition-opacity"
/> style={{ filter: 'invert(36%) sepia(49%) saturate(680%) hue-rotate(1deg) brightness(89%) contrast(91%)' }}
/>
<HiMiniArrowPathRoundedSquare
className="w-5 h-5 text-[#92722A] opacity-60 hover:opacity-100 transition-opacity cursor-pointer"
style={{ filter: 'invert(36%) sepia(49%) saturate(680%) hue-rotate(1deg) brightness(89%) contrast(91%)' }}
title="Resubmit"
/>
</div>
]); ]);
}, [filteredRows, uae_currency]); }, [filteredRows, uae_currency]);