06-10
This commit is contained in:
parent
72bb28b416
commit
01c89d413f
|
|
@ -8,6 +8,8 @@ pnpm-debug.log*
|
|||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
private
|
||||
|
||||
node
|
||||
dist
|
||||
dist-ssr
|
||||
|
|
@ -23,3 +25,5 @@ dist-ssr
|
|||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
"build": "tsc -b && vite build",
|
||||
"build:skip-check": "tsc --noEmit && vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"deploy": "npm run build:skip-check && scp -i private\\SME-Web.pem -r dist root@52.10.89.255:/var/www/sme"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
|
|
|
|||
|
|
@ -904,14 +904,15 @@ const SignDocument = () => {
|
|||
</>}
|
||||
|
||||
|
||||
{requiredFilled && !transparentTags && recipient?.type !== "CC" && <>
|
||||
<div className={`absolute z-50 ${requiredFilled ? "bottom-0" : "bottom-[-100px] hidden"} left-0 bg-[var(--primary)] w-full flex justify-around items-center transition-all duration-300 px-2.5`}>
|
||||
{!transparentTags && recipient?.type !== "CC" && <>
|
||||
<div className={`absolute z-50 ${requiredFilled ? "bottom-0 opacity-100" : "bottom-[-100px] opacity-5"} left-0 bg-[var(--primary)] w-full flex justify-around items-center transition-all duration-300 px-2.5`}>
|
||||
<div className="py-6 text-white">
|
||||
<p className="text-2xl font-semibold">All Set to Wrap This Up?</p>
|
||||
<p className="text-sm">You've completed the required fields. Review your work, then select Finish.</p>
|
||||
</div>
|
||||
<button
|
||||
onClick={handleFormSubmit}
|
||||
disabled={requiredFilled}
|
||||
className="font-semibold text-sm px-8 py-2 bg-slate-100 rounded-md text-[var(--primary)]">Finish</button>
|
||||
</div>
|
||||
</>}
|
||||
|
|
|
|||
|
|
@ -58,11 +58,11 @@ const Contacts = () => {
|
|||
try {
|
||||
let res = await api.delete(`/api/v1/accounts/${activeAccountId}/contacts/${contactId}`)
|
||||
if (res?.data) {
|
||||
toast.error("Contact delete successfully!", {
|
||||
position: "top-center",
|
||||
autoClose: 1500,
|
||||
transition: Bounce,
|
||||
});
|
||||
// toast.error("Contact delete successfully!", {
|
||||
// position: "top-center",
|
||||
// autoClose: 1500,
|
||||
// transition: Bounce,
|
||||
// });
|
||||
fetchContacts()
|
||||
setOpenMenuId(null);
|
||||
}
|
||||
|
|
@ -88,27 +88,27 @@ const Contacts = () => {
|
|||
let res;
|
||||
setCreateAndInviteLoader(true);
|
||||
if (type === 'Edit') {
|
||||
res = await api.put(`/api/v1/accounts/${activeAccountId}/contacts`, [data])
|
||||
res = await api.put(`/api/v1/accounts/${activeAccountId}/contacts`, {contacts: [data], empty: true})
|
||||
} else {
|
||||
res = await api.post(`/api/v1/accounts/${activeAccountId}/contacts`, [data]);
|
||||
res = await api.post(`/api/v1/accounts/${activeAccountId}/contacts`, {contacts: [data], empty: true});
|
||||
}
|
||||
if (res.status === 200) {
|
||||
toast.success('Contact created successfully!', {
|
||||
position: "top-center",
|
||||
autoClose: 1500,
|
||||
transition: Bounce,
|
||||
});
|
||||
// toast.success('Contact created successfully!', {
|
||||
// position: "top-center",
|
||||
// autoClose: 1500,
|
||||
// transition: Bounce,
|
||||
// });
|
||||
setShowModal(false)
|
||||
fetchContacts();
|
||||
}
|
||||
// return res;
|
||||
} catch (err) {
|
||||
console.error("Error creating contact", err);
|
||||
toast.error("Failed to create contact", {
|
||||
position: "top-center",
|
||||
autoClose: 1500,
|
||||
transition: Bounce,
|
||||
});
|
||||
// toast.error("Failed to create contact", {
|
||||
// position: "top-center",
|
||||
// autoClose: 1500,
|
||||
// transition: Bounce,
|
||||
// });
|
||||
throw err;
|
||||
} finally {
|
||||
setCreateAndInviteLoader(false);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
import { IoMdClose } from "react-icons/io";
|
||||
|
||||
import RecipientAddCard from './RecipientAddCard';
|
||||
import RecipientCards from './RecipientCards';
|
||||
import SelectedDocuments from "./SelectedDocuments";
|
||||
import api from "../../../config/api";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
|
|
@ -19,8 +15,8 @@ import { SignTypeEnum } from "../../../utlity/types";
|
|||
import { RiPencilFill } from "react-icons/ri";
|
||||
import SelfSignWarnModal from "./SelfSignWarnModal";
|
||||
import AdvancedOptions from "./AdvancedOptions";
|
||||
import getMinRoutingOrder from "../../../utlity/commonUtils";
|
||||
import MessageCon from "./MessageCon";
|
||||
// import getMinRoutingOrder from "../../../utlity/commonUtils";
|
||||
// import MessageCon from "./MessageCon";
|
||||
import RecipientsCon from "./RecipientsCon";
|
||||
import { VscClose } from "react-icons/vsc";
|
||||
import signSessionRedirect from "../../../utlity/signSessionRedirect";
|
||||
|
|
@ -245,12 +241,13 @@ const ProcessStepOne = () => {
|
|||
|
||||
dispatch(showLoader("Processing Recipients..."));
|
||||
|
||||
let minRoutingOrder = getMinRoutingOrder({ recipients: selectedRecipients });
|
||||
// let minRoutingOrder = getMinRoutingOrder({ recipients: selectedRecipients });
|
||||
|
||||
const recipientsData = selectedRecipients.map((recipient, index) => ({
|
||||
id: "id" in recipient ? recipient.id : null,
|
||||
routingOrder: "routingOrder" in recipient && recipient.routingOrder ? recipient.routingOrder : 1,
|
||||
provideOwnTags: userData.email === recipient.email && (recipient.routingOrder ?? 1) === minRoutingOrder ? true : false,
|
||||
// provideOwnTags: userData.email === recipient.email && (recipient.routingOrder ?? 1) === minRoutingOrder ? true : false,
|
||||
provideOwnTags: false,
|
||||
type: recipient.type,
|
||||
firstName: recipient.firstName,
|
||||
lastName: recipient.lastName,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const LabelAttr: React.FC<LabelAttrInt> = ({ label, handlePropertyChange }) => {
|
|||
return (
|
||||
<>
|
||||
<div className="flex flex-col">
|
||||
<label className='font-medium'>Label</label>
|
||||
<label className='font-medium capitalize'>Label</label>
|
||||
<input
|
||||
value={label}
|
||||
onChange={(e) => handlePropertyChange('label', e.target.value)}
|
||||
|
|
|
|||
|
|
@ -55,9 +55,6 @@
|
|||
--mainPrimaryBtn : #077DEC;
|
||||
--dashBoardStartNowBtn : #077DEC;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.btn {
|
||||
|
|
@ -446,5 +443,4 @@ input[type=number] {
|
|||
.__floater__body > div > button:last-child {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* JoyRide - END */
|
||||
|
|
@ -4,7 +4,7 @@ import tailwindcss from '@tailwindcss/vite'
|
|||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
base: '/',
|
||||
plugins: [react(), tailwindcss()],
|
||||
server: {
|
||||
allowedHosts: [
|
||||
|
|
|
|||
Loading…
Reference in New Issue