mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-20 21:01:08 +00:00
feat: Add back to home button to all sub pages
Added ArrowLeft navigation button to return to home page on: - AdminPanel.tsx - Admin panel page - ProfileSettings.tsx - Profile settings page - PasswordReset.tsx - Password reset page - EmailVerification.tsx - Email verification page - WalletDashboard.tsx - Wallet dashboard page - Dashboard.tsx - User dashboard page Each page now includes: - Import of ArrowLeft icon from lucide-react - Import of useNavigate from react-router-dom (if not already present) - Positioned button in top-left (absolute positioning) - Consistent styling: gray-400 with hover effect - Navigate to '/' on click This improves UX by providing consistent navigation across all sub pages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import { Badge } from '@/components/ui/badge';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import { useAuth } from '@/contexts/AuthContext';
|
||||
import { supabase } from '@/lib/supabase';
|
||||
import { User, Mail, Phone, Globe, MapPin, Calendar, Shield, AlertCircle } from 'lucide-react';
|
||||
import { User, Mail, Phone, Globe, MapPin, Calendar, Shield, AlertCircle, ArrowLeft } from 'lucide-react';
|
||||
import { useToast } from '@/hooks/use-toast';
|
||||
|
||||
export default function Dashboard() {
|
||||
@@ -65,7 +65,13 @@ export default function Dashboard() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="container mx-auto p-6 max-w-6xl">
|
||||
<div className="container mx-auto p-6 max-w-6xl relative">
|
||||
<button
|
||||
onClick={() => navigate('/')}
|
||||
className="absolute top-4 left-4 text-gray-400 hover:text-white transition-colors"
|
||||
>
|
||||
<ArrowLeft className="w-5 h-5" />
|
||||
</button>
|
||||
<h1 className="text-3xl font-bold mb-6">User Dashboard</h1>
|
||||
|
||||
<div className="grid gap-6 md:grid-cols-3 mb-6">
|
||||
|
||||
Reference in New Issue
Block a user