From 4e4de8caf577524505d41be3dfb57ea4ebe3df54 Mon Sep 17 00:00:00 2001
From: Swapnil Bendal <84583651+Swapnil155@users.noreply.github.com>
Date: Wed, 15 Jan 2025 17:29:17 +0530
Subject: [PATCH] [update] - format percentage display and adjust navigation
path
---
.../Dashboard/InvestmentOpportunities.jsx | 19 ++++++++++++-------
src/Pages/Login.jsx | 2 +-
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/Pages/Dashboard/InvestmentOpportunities.jsx b/src/Pages/Dashboard/InvestmentOpportunities.jsx
index 1d8ed47..d11a454 100644
--- a/src/Pages/Dashboard/InvestmentOpportunities.jsx
+++ b/src/Pages/Dashboard/InvestmentOpportunities.jsx
@@ -62,7 +62,13 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
"Amount Remaining %": (
- {`${parseFloat(item?.Amount_remaining_per || 0).toLocaleString()} %`}
+ {`${parseFloat(item?.Amount_remaining_per || 0).toLocaleString(
+ undefined,
+ {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2,
+ }
+ )} %`}
),
@@ -79,12 +85,11 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
"No of Views": (
- {item?.Views_today}
- {filter === "today"
- ? item?.Views_today
+ {filter === "last30days"
+ ? item?.Views_mtd
: filter === "last7days"
? item?.Views_last_7_days
- : item?.Views_mtd}
+ : item?.Views_today}
),
@@ -136,8 +141,8 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
-
-
+
+
diff --git a/src/Pages/Login.jsx b/src/Pages/Login.jsx
index 62837f1..d53844c 100644
--- a/src/Pages/Login.jsx
+++ b/src/Pages/Login.jsx
@@ -78,7 +78,7 @@ const Login = () => {
setIsLoading(false);
setIsAuthenticate(true);
Cookies.set("isAuthenticated", true, { expires: 7 });
- navigate("/sponser");
+ navigate("/");
reset();
}