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:
Radosław Gierwiało
2025-11-21 21:12:25 +01:00
parent 901b046a34
commit f3bd169dbf
4 changed files with 590 additions and 4 deletions

View File

@@ -371,4 +371,12 @@ export const ratingsAPI = {
},
};
// Dashboard API
export const dashboardAPI = {
async getData() {
const data = await fetchAPI('/dashboard');
return data.data;
},
};
export { ApiError };