[update] - format percentage display and adjust navigation path

This commit is contained in:
Swapnil Bendal
2025-01-15 17:29:17 +05:30
parent 150194cc26
commit 4e4de8caf5
2 changed files with 13 additions and 8 deletions

View File

@@ -62,7 +62,13 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
"Amount Remaining %": (
<Box w={"auto"} isTruncated>
<Text as={"span"} color={"teal.900"}>
{`${parseFloat(item?.Amount_remaining_per || 0).toLocaleString()} %`}
{`${parseFloat(item?.Amount_remaining_per || 0).toLocaleString(
undefined,
{
minimumFractionDigits: 2,
maximumFractionDigits: 2,
}
)} %`}
</Text>
</Box>
),
@@ -79,12 +85,11 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
"No of Views": (
<Box w={"auto"} isTruncated>
<Text as={"span"} color={"teal.900"}>
{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}
</Text>
</Box>
),
@@ -136,8 +141,8 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
<option value="today" selected>
Today
</option>
<option value="last7days">Last 7 day's</option>
<option value="last30days">Last 30 day's</option>
<option value="last7days">Last 7 day&rsquo;s</option>
<option value="last30days">Last 30 day&rsquo;s</option>
</Select>
</Box>
</Box>

View File

@@ -78,7 +78,7 @@ const Login = () => {
setIsLoading(false);
setIsAuthenticate(true);
Cookies.set("isAuthenticated", true, { expires: 7 });
navigate("/sponser");
navigate("/");
reset();
}