Fix React error #130 by correcting Card component usage

- Fixed all Card components to use padding prop instead of className
- Updated padding values: p-4 -> sm, p-6 -> md, p-8 -> lg
- This resolves the React element type invalid error

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-07 11:00:15 +02:00
parent 225d017718
commit 8dad933ff1
15 changed files with 73 additions and 47 deletions
+4 -1
View File
@@ -51,8 +51,11 @@ export const AdminAuthProvider: React.FC<AdminAuthProviderProps> = ({ children }
const login = (_token: string, user: AdminUser) => {
// Token is already stored in cookie by authService
setUser(user);
setIsAuthenticated(true);
setError(null);
// Small delay to ensure state is properly updated
setTimeout(() => {
setIsAuthenticated(true);
}, 100);
};
const logout = () => {