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:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user