diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 13746b8..15a639a 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -118,209 +118,191 @@ export default function Dashboard() { return (
{" "} -
- Dashboard - Dashboard -
-
-
-
-

Business Dashboard

-
- {projects && projects.length > 0 && ( - - - {projects.map((project) => ( - setCurrentProjectId(project.id)} - > - {project.project_name} - - ))} - +
+
+

Business Dashboard

+
+ {projects && projects.length > 0 && ( + + {projects.map((project) => ( - -
- - - Total Funds Raised - - - - - -
- $ - project.deal_status === "Completed") - .reduce((sum, current) => sum + current.deal_amount, 0)} - duration={1} - /> -
-
-
- - - Profile Views - - - - - - -
- + -
- {/*

+ setCurrentProjectId(project.id)} + > + {project.project_name} + + ))} + + {projects.map((project) => ( + +

+ + + Total Funds Raised + + + + + +
+ $ + project.deal_status === "Completed") + .reduce((sum, current) => sum + current.deal_amount, 0)} + duration={1} + /> +
+
+
+ + + Profile Views + + + + + + +
+ + +
+ {/*

+180.1% from last month

*/} -
-
- - - Total Followers - - - - - - - -
- + -
- {/*

+ + + + + Total Followers + + + + + + + +

+ + +
+ {/*

+19% from last month

*/} -
-
- -
-
- - - Overview - - - - {tabOptions.map((tab) => ( - - {tab.charAt(0).toUpperCase() + tab.slice(1)} - - ))} - - - + + + +
+
+ + + Overview + + + + {tabOptions.map((tab) => ( + + {tab.charAt(0).toUpperCase() + tab.slice(1)} + + ))} + + + - - - setGraphType("line")}> - Line - - setGraphType("bar")}> - Bar - - - - - - - - - Recent Funds - - - { - return { - name: item.username, - amount: item.dealAmount, - avatar: item.avatarUrl, - date: new Date(item.createdTime), - status: item.dealStatus, - profile_url: `/profile/${item.investorId}`, - }; - })} - /> -
- {filteredProject && filteredProject.length > 1 ? ( - { - return { - date: item.created_time, - name: item.username, - amount: item.deal_amount, - status: item.deal_status, - logoURL: Array.isArray(item.avatar_url) ? item.avatar_url[0] : item.avatar_url, - profileURL: `/profile/${item.investor_id}`, - }; - })} - /> - ) : undefined} -
+ + + setGraphType("line")}> + Line + + setGraphType("bar")}> + Bar + + +
-
-
- - ))} - - )} -
+
+ + + + Recent Funds + + + { + return { + name: item.username, + amount: item.dealAmount, + avatar: item.avatarUrl, + date: new Date(item.createdTime), + status: item.dealStatus, + profile_url: `/profile/${item.investorId}`, + }; + })} + /> +
+ {filteredProject && filteredProject.length > 1 ? ( + { + return { + date: item.created_time, + name: item.username, + amount: item.deal_amount, + status: item.deal_status, + logoURL: Array.isArray(item.avatar_url) ? item.avatar_url[0] : item.avatar_url, + profileURL: `/profile/${item.investor_id}`, + }; + })} + /> + ) : undefined} +
+
+
+
+ + ))} +
+ )}
);