Update error handling and clean up imports in StandardCardGroupSection and helpers

- Changed console warning to error for better visibility when no cards are provided in StandardCardGroupSection.
- Simplified imports in helpers by removing unused React types to enhance code clarity.
This commit is contained in:
gabriel-ortiz
2026-01-27 14:36:05 -08:00
committed by Calvin Jhunjhuwala
parent f1d5c05c78
commit ce77be21a4
2 changed files with 2 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ export const StandardCardGroupSection = React.forwardRef<
// Early return for empty cards array
if (cards.length === 0) {
if (isEnvironment("development")) {
console.warn("StandardCardGroupSection: No cards provided");
console.error("StandardCardGroupSection: No cards provided");
}
return null;
}