From ce77be21a41b6af13f6d2dbbd2787b8564bb36f7 Mon Sep 17 00:00:00 2001 From: gabriel-ortiz Date: Tue, 27 Jan 2026 14:36:05 -0800 Subject: [PATCH] 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. --- .../StandardCardGroupSection/StandardCardGroupSection.tsx | 2 +- shared/utils/helpers.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/shared/patterns/StandardCardGroupSection/StandardCardGroupSection.tsx b/shared/patterns/StandardCardGroupSection/StandardCardGroupSection.tsx index d11c872575..b3bdbeadb3 100644 --- a/shared/patterns/StandardCardGroupSection/StandardCardGroupSection.tsx +++ b/shared/patterns/StandardCardGroupSection/StandardCardGroupSection.tsx @@ -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; } diff --git a/shared/utils/helpers.ts b/shared/utils/helpers.ts index df1dcd1284..f4a0579766 100644 --- a/shared/utils/helpers.ts +++ b/shared/utils/helpers.ts @@ -1,8 +1,4 @@ -import React, { - isValidElement, - type ReactElement, - type ReactNode, -} from "react"; +import React from "react"; /** * Valid Node.js environment values