[update] - format percentage display and adjust navigation path
This commit is contained in:
@@ -62,7 +62,13 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
|
|||||||
"Amount Remaining %": (
|
"Amount Remaining %": (
|
||||||
<Box w={"auto"} isTruncated>
|
<Box w={"auto"} isTruncated>
|
||||||
<Text as={"span"} color={"teal.900"}>
|
<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>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
),
|
),
|
||||||
@@ -79,12 +85,11 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
|
|||||||
"No of Views": (
|
"No of Views": (
|
||||||
<Box w={"auto"} isTruncated>
|
<Box w={"auto"} isTruncated>
|
||||||
<Text as={"span"} color={"teal.900"}>
|
<Text as={"span"} color={"teal.900"}>
|
||||||
{item?.Views_today}
|
{filter === "last30days"
|
||||||
{filter === "today"
|
? item?.Views_mtd
|
||||||
? item?.Views_today
|
|
||||||
: filter === "last7days"
|
: filter === "last7days"
|
||||||
? item?.Views_last_7_days
|
? item?.Views_last_7_days
|
||||||
: item?.Views_mtd}
|
: item?.Views_today}
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
),
|
),
|
||||||
@@ -136,8 +141,8 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => {
|
|||||||
<option value="today" selected>
|
<option value="today" selected>
|
||||||
Today
|
Today
|
||||||
</option>
|
</option>
|
||||||
<option value="last7days">Last 7 day's</option>
|
<option value="last7days">Last 7 day’s</option>
|
||||||
<option value="last30days">Last 30 day's</option>
|
<option value="last30days">Last 30 day’s</option>
|
||||||
</Select>
|
</Select>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ const Login = () => {
|
|||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
setIsAuthenticate(true);
|
setIsAuthenticate(true);
|
||||||
Cookies.set("isAuthenticated", true, { expires: 7 });
|
Cookies.set("isAuthenticated", true, { expires: 7 });
|
||||||
navigate("/sponser");
|
navigate("/");
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user