Align props with figma

This commit is contained in:
adilallo
2026-02-04 16:52:03 -07:00
parent ee9784271f
commit af7e2d3e51
53 changed files with 1287 additions and 108 deletions
@@ -4,10 +4,11 @@ import { memo, useState } from "react";
import { logger } from "../../../lib/logger";
import QuoteBlockView from "./QuoteBlock.view";
import type { QuoteBlockProps, VariantConfig } from "./QuoteBlock.types";
import { normalizeQuoteBlockVariant } from "../../../lib/propNormalization";
const QuoteBlockContainer = memo<QuoteBlockProps>(
({
variant = "standard",
variant: variantProp = "standard",
className = "",
quote = "The rules of decision-making must be open and available to everyone, and this can happen only if they are formalized.",
author = "Jo Freeman",
@@ -17,6 +18,8 @@ const QuoteBlockContainer = memo<QuoteBlockProps>(
fallbackAvatarSrc = "/assets/Quote_Avatar.svg",
onError,
}) => {
// Normalize props to handle both PascalCase (Figma) and lowercase (codebase)
const variant = normalizeQuoteBlockVariant(variantProp);
const [imageError, setImageError] = useState(false);
const [imageLoading, setImageLoading] = useState(true);