fix: Correct profile settings route from /profile-settings to /profile/settings

Issue: Edit Profile button returned 404 error

Root Cause:
- App.tsx route: /profile-settings (with dash)
- Dashboard navigate: /profile/settings (with slash)
- Route mismatch caused 404

Changes:
- Updated App.tsx route: /profile-settings → /profile/settings
- Updated AppLayout.tsx Settings button navigation

All profile settings links now use consistent /profile/settings route

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-29 04:04:50 +03:00
parent 197180f73a
commit c2be2d211d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ function App() {
<Dashboard /> <Dashboard />
</ProtectedRoute> </ProtectedRoute>
} /> } />
<Route path="/profile-settings" element={ <Route path="/profile/settings" element={
<ProtectedRoute> <ProtectedRoute>
<ProfileSettings /> <ProfileSettings />
</ProtectedRoute> </ProtectedRoute>
+1 -1
View File
@@ -193,7 +193,7 @@ const AppLayout: React.FC = () => {
</div> </div>
<button <button
onClick={() => navigate('/profile-settings')} onClick={() => navigate('/profile/settings')}
className="text-gray-300 hover:text-white transition-colors flex items-center gap-1 text-sm" className="text-gray-300 hover:text-white transition-colors flex items-center gap-1 text-sm"
> >
<Settings className="w-4 h-4" /> <Settings className="w-4 h-4" />