mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-12 16:41:02 +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 />
|
<Dashboard />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
} />
|
} />
|
||||||
<Route path="/profile-settings" element={
|
<Route path="/profile/settings" element={
|
||||||
<ProtectedRoute>
|
<ProtectedRoute>
|
||||||
<ProfileSettings />
|
<ProfileSettings />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
|||||||
@@ -192,8 +192,8 @@ const AppLayout: React.FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
</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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user