Fix privacy settings implementation

This commit is contained in:
gpt-engineer-app[bot]
2025-09-28 20:29:15 +00:00
parent 65e5b8e52f
commit 10bdfa67a2
5 changed files with 388 additions and 22 deletions

View File

@@ -10,6 +10,7 @@ import { useToast } from '@/hooks/use-toast';
import { useAuth } from '@/hooks/useAuth';
import { supabase } from '@/integrations/supabase/client';
import { Eye, UserX, Shield, Search } from 'lucide-react';
import { BlockedUsers } from '@/components/privacy/BlockedUsers';
interface PrivacySettings {
activity_visibility: 'public' | 'private';
search_visibility: boolean;
@@ -284,13 +285,7 @@ export function PrivacyTab() {
</CardDescription>
</CardHeader>
<CardContent>
<div className="text-center p-4 text-muted-foreground">
<UserX className="w-8 h-8 mx-auto mb-2" />
<p className="text-sm">No blocked users</p>
<p className="text-xs mt-1">
Blocked users will appear here and can be unblocked at any time.
</p>
</div>
<BlockedUsers />
</CardContent>
</Card>
</div>