+
{List.length > 10 && (
<>
{currentPage > 1 && (
diff --git a/apps/OpenSign/src/routes/LoadMf.js b/apps/OpenSign/src/routes/LoadMf.js
new file mode 100644
index 000000000..2f8a43a1f
--- /dev/null
+++ b/apps/OpenSign/src/routes/LoadMf.js
@@ -0,0 +1,84 @@
+import { Suspense } from "react";
+import { useParams } from "react-router-dom";
+import useFederatedComponent from "mf-cra";
+import React from "react";
+import Title from "../components/Title";
+function RemoteApp({ app }) {
+ // console.log("app ", app);
+ const { Component: RemoteComponent } = useFederatedComponent(app);
+ // console.log("RemoteComponent ", RemoteComponent);
+ return (
+ <>
+
+
+
+
+ }
+ >
+
+ {RemoteComponent && }
+
+
+ >
+ );
+}
+function checkObjectProperties(obj) {
+ // Check if all three properties exist in the object
+ if (
+ obj &&
+ obj.remoteName !== undefined &&
+ obj.remoteUrl !== undefined &&
+ obj.moduleToLoad !== undefined
+ ) {
+ return true; // All properties are present
+ } else {
+ return false; // At least one property is missing
+ }
+}
+export default function RemoteAppContainer() {
+ const { remoteApp } = useParams();
+
+ const obj = {
+ remoteUrl: window.location.origin + "/mfbuild/remoteEntry.js",
+ moduleToLoad: "./AppRoutes",
+ remoteName: remoteApp
+ };
+ // console.log("obj ", obj);
+ const isMf = checkObjectProperties(obj);
+ if (isMf) {
+ const appToLoad = obj;
+ return
;
+ } else {
+ return (
+
+
+
+ 404
+
+
+ Page Not Found
+
+
+
+ );
+ }
+}
diff --git a/apps/OpenSign/src/routes/PlanSubscriptions.js b/apps/OpenSign/src/routes/PlanSubscriptions.js
index 61784986e..740277932 100644
--- a/apps/OpenSign/src/routes/PlanSubscriptions.js
+++ b/apps/OpenSign/src/routes/PlanSubscriptions.js
@@ -64,7 +64,7 @@ const PlanSubscriptions = () => {
style={{
backgroundColor: "white",
overflowY: "auto",
- maxHeight: "600px",
+ maxHeight: "100%",
"--theme-color": "#7952b3",
"--plan-width": 30
}}
diff --git a/microfrontends/SignDocuments/src/Component/PageNotFound.js b/microfrontends/SignDocuments/src/Component/PageNotFound.js
new file mode 100644
index 000000000..b9e912e32
--- /dev/null
+++ b/microfrontends/SignDocuments/src/Component/PageNotFound.js
@@ -0,0 +1,16 @@
+import React from "react";
+
+const PageNotFound = () => {
+ return (
+
+
+
+ 404
+
+
Page Not Found
+
+
+ );
+};
+
+export default PageNotFound;
diff --git a/microfrontends/SignDocuments/src/Component/login.js b/microfrontends/SignDocuments/src/Component/login.js
index 9995e1970..1636beff7 100644
--- a/microfrontends/SignDocuments/src/Component/login.js
+++ b/microfrontends/SignDocuments/src/Component/login.js
@@ -116,7 +116,8 @@ function Login() {
localStorage.setItem("accesstoken", _user.sessionToken);
setLoading(false);
//navigate user to on signature page
- navigate(`/recipientSignPdf/${id}/${contactBookId}`);
+ // navigate(`/recipientSignPdf/${id}/${contactBookId}`);
+ navigate(`/loadmf/signmicroapp/recipientSignPdf/${id}/${contactBookId}`);
}
} catch (error) {}
} else {
diff --git a/microfrontends/SignDocuments/src/Routes.js b/microfrontends/SignDocuments/src/Routes.js
index e9883138b..605212871 100644
--- a/microfrontends/SignDocuments/src/Routes.js
+++ b/microfrontends/SignDocuments/src/Routes.js
@@ -8,6 +8,7 @@ import Login from "./Component/login";
import DraftDocument from "./Component/DraftDocument";
import PdfRequestFiles from "./Component/PdfRequestFiles";
import LegaDrive from "./Component/LegaDrive/LegaDrive";
+import PageNotFound from "./Component/PageNotFound";
// `AppRoutes` is used to define route path of app and
// it expose to host app, check moduleFederation.config.js for more
@@ -33,7 +34,10 @@ function AppRoutes() {
{/*Add default signature of user route */}
} />
{/* login page route */}
-
} />
+
}
+ />
{/* draft document route to handle and navigate route page accordiing to document status */}
} />
{/* for user signature (need your sign route) with row level data */}
@@ -42,6 +46,8 @@ function AppRoutes() {
} />
{/* lega drive route */}
} />
+ {/* Page Not Found */}
+
} />
);
From 4b9088b2522f2a6561e71a9ff3cd74cb9f077cf5 Mon Sep 17 00:00:00 2001
From: prafull-opensignlabs