feat(dashboard-v2): add 'info' variant to Alert component

This commit is contained in:
Michał Leszczyk 2022-03-24 18:47:35 +01:00
parent 07112383d3
commit 1933ccd270
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import cn from "classnames";
export const Alert = styled.div.attrs(({ $variant }) => ({ export const Alert = styled.div.attrs(({ $variant }) => ({
className: cn("px-3 py-2 sm:px-6 sm:py-4 rounded border", { className: cn("px-3 py-2 sm:px-6 sm:py-4 rounded border", {
"bg-blue-100 border-blue-200 text-palette-400": $variant === "info",
"bg-red-100 border-red-200 text-error": $variant === "error", "bg-red-100 border-red-200 text-error": $variant === "error",
"bg-green-100 border-green-200 text-palette-400": $variant === "success", "bg-green-100 border-green-200 text-palette-400": $variant === "success",
}), }),