feat(frontend): implement dashboard page
- Create DashboardPage with active events, matches, and requests - Add dashboardAPI.getData() to services/api.js - Add /dashboard route as default landing after login - Update Navbar with Dashboard and Events links - Show video exchange and rating status for matches - Handle match accept/reject/cancel actions
This commit is contained in:
@@ -371,4 +371,12 @@ export const ratingsAPI = {
|
||||
},
|
||||
};
|
||||
|
||||
// Dashboard API
|
||||
export const dashboardAPI = {
|
||||
async getData() {
|
||||
const data = await fetchAPI('/dashboard');
|
||||
return data.data;
|
||||
},
|
||||
};
|
||||
|
||||
export { ApiError };
|
||||
|
||||
Reference in New Issue
Block a user