[update] - format percentage display and adjust navigation path
This commit is contained in:
@@ -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’s</option>
|
||||
<option value="last30days">Last 30 day’s</option>
|
||||
</Select>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
@@ -78,7 +78,7 @@ const Login = () => {
|
||||
setIsLoading(false);
|
||||
setIsAuthenticate(true);
|
||||
Cookies.set("isAuthenticated", true, { expires: 7 });
|
||||
navigate("/sponser");
|
||||
navigate("/");
|
||||
reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user