Resolve test errors

This commit is contained in:
adilallo
2026-02-04 17:03:10 -07:00
parent 967fc11ae8
commit b0b9699ced
5 changed files with 21 additions and 15 deletions
+3 -3
View File
@@ -28,14 +28,14 @@ interface NumberCardProps {
}
const NumberCard = memo<NumberCardProps>(({ number, text, size: sizeProp }) => {
// Normalize props to handle both PascalCase (Figma) and lowercase (codebase)
const size = normalizeNumberCardSize(sizeProp);
// Base classes common to all sizes
const baseClasses = "bg-[var(--color-surface-inverse-primary)] rounded-[12px] shadow-lg";
// If size prop is provided, use explicit size classes
// Otherwise, use responsive breakpoints for backward compatibility
if (size) {
if (sizeProp) {
// Normalize props to handle both PascalCase (Figma) and lowercase (codebase)
const size = normalizeNumberCardSize(sizeProp);
// Size-specific classes
const sizeClasses = {
Small: "flex flex-col items-end justify-center gap-4 p-5 relative",
@@ -9,7 +9,7 @@ const RadioButtonContainer = ({
checked = false,
mode: modeProp = "standard",
state: stateProp = "default", // This state prop is now only for static display in Storybook/Preview
indicator = true, // From Figma: whether to show the indicator dot
indicator: _indicator = true, // From Figma: whether to show the indicator dot (currently not used in view)
disabled = false,
label,
onChange,
@@ -39,8 +39,9 @@ const SelectInputContainer = forwardRef<HTMLButtonElement, SelectInputProps>(
ref,
) => {
// Normalize props to handle both PascalCase (Figma) and lowercase (codebase)
const labelVariant = labelVariantProp ? normalizeLabelVariant(labelVariantProp) : undefined;
const size = sizeProp ? normalizeSmallMediumLargeSize(sizeProp) : undefined;
// Note: labelVariant and size are normalized for future use but not yet implemented in the view
const _labelVariant = labelVariantProp ? normalizeLabelVariant(labelVariantProp) : undefined;
const _size = sizeProp ? normalizeSmallMediumLargeSize(sizeProp) : undefined;
const externalState = normalizeState(externalStateProp);
const generatedId = useId();