fix: contactbook report title to name in heading

This commit is contained in:
RaktimaNXG
2024-08-08 16:31:26 +05:30
parent 9fa97f27f0
commit 3f8a17c3ea
5 changed files with 16 additions and 19 deletions
@@ -580,11 +580,9 @@
"Recent signature requests": "This is a list of documents that are waiting for your signature.",
"Recently sent for signatures":"This is a list of documents you've sent to other parties for signature.",
"Drafts":"This are documents you have started but have not finalized for sending."
}
},
"enter-email-plaholder":"Add an email address and hit enter",
"success-email-alert":"Email sent successfully!"
@@ -114,7 +114,7 @@
"Users":"Utilisateurs"
},
"report-heading":{
"Sr.No":"Numéro du document",
"Sr.No":"Sr. Non",
"Title":"Titre",
"Email":"E-mail",
"Phone":"Téléphone",
@@ -128,7 +128,7 @@
"Active":"Actif",
"Role":"Rôle",
"Team":"Équipe",
"Name":"Nom et Prénom",
"Name":"Nom",
"Status":"Statut",
"created-date":"Date de création",
"Type":"Saisir"
@@ -579,8 +579,9 @@
"Recent signature requests": "Voici une liste de documents qui attendent votre signature.",
"Recently sent for signatures":"Il s'agit d'une liste de documents que vous avez envoyés à d'autres parties pour signature.",
"Drafts":"Il s'agit de documents que vous avez commencés mais que vous n'avez pas finalisés pour envoi."
}
},
"enter-email-plaholder":"Ajoutez une adresse email et appuyez sur Entrée",
"success-email-alert" :"E-mail envoyé avec succès!"
@@ -1,13 +1,7 @@
import React, { useState } from "react";
import { saveAs } from "file-saver";
import axios from "axios";
import {
getBase64FromUrl,
handleDownloadPdf,
handleToPrint
} from "../../constant/Utils";
import { handleDownloadPdf, handleToPrint } from "../../constant/Utils";
import { themeColor, emailRegex } from "../../constant/const";
import printModule from "print-js";
import Loader from "../../primitives/Loader";
import ModalUi from "../../primitives/ModalUi";
import { useTranslation } from "react-i18next";
@@ -239,7 +233,7 @@ function EmailComponent({
className="p-[10px] pb-[20px] rounded w-full text-[15px] outline-none bg-transparent border-[1.5px] op-border-primary"
onChange={handleEmailValue}
onKeyDown={handleEnterPress}
placeholder="Add an email address and hit enter"
placeholder={t("enter-email-plaholder")}
onBlur={() => emailValue && handleEnterPress("add")}
onInvalid={(e) =>
e.target.setCustomValidity(t("input-required"))
@@ -9,6 +9,7 @@ import {
} from "../../constant/Utils";
import Placeholder from "./Placeholder";
import Alert from "../../primitives/Alert";
import { useTranslation } from "react-i18next";
function RenderPdf({
pageNumber,
@@ -63,6 +64,7 @@ function RenderPdf({
ispublicTemplate,
handleUserDetails
}) {
const { t } = useTranslation();
const isMobile = window.innerWidth < 767;
//check isGuestSigner is present in local if yes than handle login flow header in mobile view
const isGuestSigner = localStorage.getItem("isGuestSigner");
@@ -249,7 +251,9 @@ function RenderPdf({
};
return (
<>
{successEmail && <Alert type={"success"}>Email sent successfully!</Alert>}
{successEmail && (
<Alert type={"success"}>{t("success-email-alert")}</Alert>
)}
{isMobile ? (
<div
data-tut="reactourForth"
+1 -1
View File
@@ -10,7 +10,7 @@ export default function reportJson(id) {
"Owner",
"Signers"
];
const contactbook = ["Sr.No", "Title", "Email", "Phone"];
const contactbook = ["Sr.No", "Name", "Email", "Phone"];
const dashboardReportHead = ["Title", "File", "Owner", "Signers"];
const templateReport = ["Sr.No", "Title", "File", "Owner", "Signers"];
switch (id) {