website refactor

This commit is contained in:
2026-01-12 01:01:49 +01:00
parent 5ca6023a5a
commit fefd8d1cd6
294 changed files with 4628 additions and 4991 deletions

View File

@@ -33,6 +33,7 @@ import {
Smartphone,
AlertCircle
} from 'lucide-react';
import { logoutAction } from '@/app/actions/logoutAction';
// ============================================================================
// Types
@@ -174,10 +175,8 @@ export default function SponsorSettingsPage() {
const handleDeleteAccount = () => {
if (confirm('Are you sure you want to delete your sponsor account? This action cannot be undone. All sponsorship data will be permanently removed.')) {
// Call logout API to clear session
fetch('/api/auth/logout', { method: 'POST' }).finally(() => {
router.push('/');
});
// Call the logout action directly
logoutAction();
}
};