mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 04:27:56 +00:00
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:
+1
-1
@@ -39,7 +39,7 @@ function App() {
|
||||
<Dashboard />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/profile-settings" element={
|
||||
<Route path="/profile/settings" element={
|
||||
<ProtectedRoute>
|
||||
<ProfileSettings />
|
||||
</ProtectedRoute>
|
||||
|
||||
@@ -192,8 +192,8 @@ const AppLayout: React.FC = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={() => navigate('/profile-settings')}
|
||||
<button
|
||||
onClick={() => navigate('/profile/settings')}
|
||||
className="text-gray-300 hover:text-white transition-colors flex items-center gap-1 text-sm"
|
||||
>
|
||||
<Settings className="w-4 h-4" />
|
||||
|
||||
Reference in New Issue
Block a user