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
+6 -2
View File
@@ -3,16 +3,20 @@
import { memo } from "react";
import { AlertView } from "./Alert.view";
import type { AlertProps } from "./Alert.types";
import { normalizeAlertStatus, normalizeAlertType } from "../../../lib/propNormalization";
const AlertContainer = memo<AlertProps>(
({
title,
description,
status = "default",
type = "toast",
status: statusProp = "default",
type: typeProp = "toast",
onClose,
className = "",
}) => {
// Normalize props to handle both PascalCase (Figma) and lowercase (codebase)
const status = normalizeAlertStatus(statusProp);
const type = normalizeAlertType(typeProp);
// Determine background and border colors based on status and type
const getStatusStyles = () => {
switch (status) {