From 7973f8f9343985e694ac08230ee1c8fec225c1c4 Mon Sep 17 00:00:00 2001 From: JaiPandey425 Date: Mon, 4 Aug 2025 13:58:45 +0530 Subject: [PATCH] edit-case at same time delete click --- src/assets/record.svg | 11 +++++++++++ src/components/contacts/Contacts.tsx | 13 +++++++++++-- .../process/processStepOne/RecipientAddCard.tsx | 1 + src/components/setting/Signature/Signature.tsx | 8 ++++---- src/components/setting/UserProfile.tsx | 2 +- src/components/templates/Templates.tsx | 14 +++++++++++--- src/components/transactions/TransactionView.tsx | 4 ++-- src/types/images.d.ts | 4 ++++ 8 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 src/assets/record.svg create mode 100644 src/types/images.d.ts diff --git a/src/assets/record.svg b/src/assets/record.svg new file mode 100644 index 0000000..3d51d45 --- /dev/null +++ b/src/assets/record.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/components/contacts/Contacts.tsx b/src/components/contacts/Contacts.tsx index b4cce43..86bc7a9 100644 --- a/src/components/contacts/Contacts.tsx +++ b/src/components/contacts/Contacts.tsx @@ -5,6 +5,7 @@ import ContactFormModal, { ContactData } from './ContactsFormModal'; import { Bounce, toast } from 'react-toastify'; import { IoMdAdd } from 'react-icons/io'; import LoaderUi from '../../helper/LoaderUi'; +import logoRecord from '../../assets/record.svg' type ContactSchema = [{ id: number, @@ -146,8 +147,16 @@ const Contacts = () => { ) : contacts.length === 0 ? ( - No contacts found. - + +
+ Record Not Found +
+ + ) : ( contacts.map((contact) => ( diff --git a/src/components/process/processStepOne/RecipientAddCard.tsx b/src/components/process/processStepOne/RecipientAddCard.tsx index b0bb3cc..a691704 100644 --- a/src/components/process/processStepOne/RecipientAddCard.tsx +++ b/src/components/process/processStepOne/RecipientAddCard.tsx @@ -11,6 +11,7 @@ import { FiEdit, FiTrash } from "react-icons/fi"; import { v4 as uuidv4 } from 'uuid'; + interface ContactType { id: string; email: string; diff --git a/src/components/setting/Signature/Signature.tsx b/src/components/setting/Signature/Signature.tsx index 5ff4581..cedac93 100644 --- a/src/components/setting/Signature/Signature.tsx +++ b/src/components/setting/Signature/Signature.tsx @@ -114,7 +114,7 @@ const SignatureManager: React.FC = () => {
<> {/* Header */} -
+

Signatures

Add or update your name and signature styles.

@@ -126,7 +126,7 @@ const SignatureManager: React.FC = () => {
{/* Table Card */} -
+
{/* Table Header */}
@@ -206,7 +206,7 @@ const SignatureManager: React.FC = () => { {/* Dropdown Menu */} {activeDropdown === signature.id && ( -
+