Reverted to commit 06ed528d76

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 15:58:56 +00:00
parent 1df9ada8ae
commit f37b99a5f9
33 changed files with 2509 additions and 140 deletions

View File

@@ -12,6 +12,7 @@ export function AuthButtons() {
const {
user,
profile,
loading,
signOut
} = useAuth();
const navigate = useNavigate();
@@ -40,10 +41,21 @@ export function AuthButtons() {
setLoggingOut(false);
}
};
// Show loading skeleton during auth check
if (loading) {
return (
<div className="flex gap-2 items-center">
<div className="h-8 w-16 bg-muted animate-pulse rounded" />
<div className="h-8 w-8 bg-muted animate-pulse rounded-full" />
</div>
);
}
if (!user) {
return (
<>
<Button
<Button
variant="ghost"
size="sm"
onClick={() => {