Skip to content

Commit e1c72a6

Browse files
committed
Enhance Profile and Leagues Pages with New UI Components and Improved Data Handling
- Updated ProfilePage.jsx to include new InfoCard and StatCard components for better layout and styling. - Enhanced role and status color coding with gradient backgrounds. - Added loading animations and improved user feedback during data fetching. - Introduced a new LeaguesPage.jsx to manage league data, including enrollment functionality and dynamic statistics. - Implemented optimized data loading and resource calculation tracking for leagues. - Improved error handling and user notifications throughout the application.
1 parent 57b386e commit e1c72a6

File tree

5 files changed

+898
-763
lines changed

5 files changed

+898
-763
lines changed

src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import EmailVerificationPage from './pages/EmailVerificationPage'
1313
import DashboardPage from './pages/DashboardPage'
1414
import DashboardLayout from './components/dashboard/DashboardLayout'
1515
import DashboardMainPage from './pages/DashboardMainPage'
16+
import LeaguesPage from './pages/LeaguesPage'
1617
import LeaderboardPage from './pages/LeaderboardPage'
1718
import ProfilePage from './pages/ProfilePage'
1819
import LeagueDetailPageRoute from './pages/LeagueDetailPageRoute'
@@ -69,6 +70,7 @@ const App = () => {
6970
{/* Dashboard routes with layout */}
7071
<Route path="/dashboard" element={<DashboardLayout />}>
7172
<Route index element={<DashboardMainPage />} />
73+
<Route path="leagues" element={<LeaguesPage />} />
7274
<Route path="leaderboard" element={<LeaderboardPage />} />
7375
<Route path="profile" element={<ProfilePage />} />
7476
<Route path="league/:id" element={<LeagueDetailPageRoute />} />

0 commit comments

Comments
 (0)