diff --git a/.env b/.env index 36e2149..f99f581 100644 --- a/.env +++ b/.env @@ -6,5 +6,7 @@ # VITE_BASE_URI="https://smashing-albacore-engaging.ngrok-free.app" # VITE_BASE_URI="https://basically-polished-yeti.ngrok-free.app" # VITE_BASE_URI="https://sacha-countryfied-evolutionistically.ngrok-free.dev" +# VITE_BASE_URI="https://web.signmadeasy.app" +# VITE_SSE_URI="https://web.signmadeasy.app" VITE_BASE_URI="https://web.signmadeasy.app" VITE_SSE_URI="https://web.signmadeasy.app" \ No newline at end of file diff --git a/package.json b/package.json index 0023519..b240e20 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build:skip-check": "tsc --noEmit && vite build", "lint": "eslint .", "preview": "vite preview", - "deploy": "npm run build:skip-check && scp -i private\\SME-Web.pem -r dist root@100.22.185.166:/var/www/sme" + "deploy": "npm run build:skip-check && pscp -i private\\SME-Web.ppk -r dist root@100.22.185.166:/var/www/sme" }, "dependencies": { "@dnd-kit/core": "^6.3.1", diff --git a/src/App.tsx b/src/App.tsx index e9f4f8d..ad47021 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -114,7 +114,7 @@ const App = () => { } /> } /> - } /> + } /> } /> } /> diff --git a/src/components/client/CompletionScreen.tsx b/src/components/client/CompletionScreen.tsx index 581094d..b01ced3 100644 --- a/src/components/client/CompletionScreen.tsx +++ b/src/components/client/CompletionScreen.tsx @@ -1,6 +1,8 @@ import React, { useEffect } from "react"; import { RiFileList3Line } from "react-icons/ri"; import confetti from 'canvas-confetti' +import handleDownloadDocument from "../../helper/handleDownloadDocumentRecSide"; +import { useParams } from "react-router-dom"; interface CompletionScreenProps { hit?: string; @@ -15,7 +17,7 @@ const CompletionScreen: React.FC = ({ message = "Your document is now complete and securely stored. We’ve emailed you a copy for your reference.", textColorSuccess = true }) => { - + const { recipientId } = useParams(); useEffect(() => { @@ -60,10 +62,11 @@ const CompletionScreen: React.FC = ({ {/* Header */}
- + {/* Sign made easy - + */} +
@@ -76,6 +79,13 @@ const CompletionScreen: React.FC = ({ {message}

+

{ handleDownloadDocument(recipientId || "") }} + className="text-white bg-[var(--mainPrimaryBtn)] px-3 py-1 rounded-sm mt-4 cursor-pointer"> + Download Signed Documents +

+ + {/* */} -

- Access your documents anytime — just Login +

+ Access your documents anytime — just Login

- {/* Illustration placeholder */}
{textColorSuccess ? (null); + const { recipientId } = useParams(); + const [showMenuDownload, setShowMenuDownload] = useState<{ open: boolean, transactionId: string | null }>({ open: false, transactionId: null @@ -91,6 +95,18 @@ export default function SignButton({ Download Document */} +
  • + +
  • +
  • + )} + {/* Action Buttons - END*/} @@ -600,26 +631,6 @@ const RecipientCards = ({ - - {/* Action Buttons */} - {signType != "self-sign" && ( -
    - -
    - )} diff --git a/src/components/process/processStepOne/SortableRecipient.tsx b/src/components/process/processStepOne/SortableRecipient.tsx index ceeceef..8fb5353 100644 --- a/src/components/process/processStepOne/SortableRecipient.tsx +++ b/src/components/process/processStepOne/SortableRecipient.tsx @@ -4,7 +4,7 @@ import { MdDragIndicator } from "react-icons/md"; import { useSelector } from "react-redux"; import { RootState } from "../../../store/store"; -const SortableRecipient = ({ recipient, idx, editRecipientCurrentEmail, children }: any) => { +const SortableRecipient = ({ recipient, idx, editRecipientCurrentEmail, children, signingOrder }: any) => { const selectedRecipientsLen = useSelector((state: RootState) => state.selectedRecipients.recipients.length); @@ -22,12 +22,12 @@ const SortableRecipient = ({ recipient, idx, editRecipientCurrentEmail, children transition, opacity: isDragging ? 0.6 : 1, }; - + return (
    @@ -37,7 +37,9 @@ const SortableRecipient = ({ recipient, idx, editRecipientCurrentEmail, children {...listeners} className="cursor-grab text-gray-500 flex items-center pr-2 absolute top-0 left-0 z-50" > - + + {signingOrder && } +
    } {/* Your card content */} diff --git a/src/components/process/processStepTwo/NavTwo.tsx b/src/components/process/processStepTwo/NavTwo.tsx index 8057faa..bbcbe4c 100644 --- a/src/components/process/processStepTwo/NavTwo.tsx +++ b/src/components/process/processStepTwo/NavTwo.tsx @@ -311,7 +311,7 @@ const NavTwo: React.FC = ({ setShowActionsDropDown(false) }} className="cursor-pointer w-full text-left px-4 py-2 text-sm hover:bg-gray-100"> - Save + Save Changes