mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-13 13:17:39 +02:00
refactor: remove mf-cra & change routes
This commit is contained in:
@@ -2,8 +2,6 @@ import React from "react";
|
||||
import { Document, Page, pdfjs } from "react-pdf";
|
||||
import { Stage, Layer, Rect } from "react-konva";
|
||||
const RenderDebugPdf = (props) => {
|
||||
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div
|
||||
|
||||
@@ -488,7 +488,7 @@ function PlaceHolderSign() {
|
||||
setIsCheckbox(true);
|
||||
} else if (dragTypeValue === "radio") {
|
||||
setIsRadio(true);
|
||||
} else if(dragTypeValue !== 'label' && dragTypeValue !== 'signature') {
|
||||
} else if (dragTypeValue !== "label" && dragTypeValue !== "signature") {
|
||||
setIsNameModal(true);
|
||||
}
|
||||
setWidgetType(dragTypeValue);
|
||||
@@ -704,10 +704,9 @@ function PlaceHolderSign() {
|
||||
flag,
|
||||
containerWH
|
||||
);
|
||||
|
||||
|
||||
const parseBaseUrl = localStorage.getItem("baseUrl");
|
||||
const parseAppId = localStorage.getItem("parseAppId");
|
||||
Parse.initialize(parseAppId);
|
||||
Parse.serverURL = parseBaseUrl;
|
||||
Parse.initialize(parseAppId);
|
||||
const fileName = sanitizeFileName(pdfDetails[0].Name) + ".pdf";
|
||||
@@ -746,7 +745,7 @@ function PlaceHolderSign() {
|
||||
setIsSendAlert(alert);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
const sendEmailToSigners = async () => {
|
||||
setIsUiLoading(true);
|
||||
const pdfUrl = await embedPrefilllData();
|
||||
@@ -842,7 +841,6 @@ function PlaceHolderSign() {
|
||||
//filter label widgets after add label widgets data on pdf
|
||||
const filterPrefill = signerPos.filter((data) => data.Role !== "prefill");
|
||||
|
||||
|
||||
try {
|
||||
if (updateExpiryDate) {
|
||||
data = {
|
||||
@@ -1212,7 +1210,7 @@ function PlaceHolderSign() {
|
||||
|
||||
const handleNameModal = () => {
|
||||
setIsNameModal(!isNameModal);
|
||||
setCurrWidgetsDetails({})
|
||||
setCurrWidgetsDetails({});
|
||||
};
|
||||
//function for update TourStatus
|
||||
const closeTour = async () => {
|
||||
|
||||
Reference in New Issue
Block a user