feat(dashboard-v2): add 'info' variant to Alert component
This commit is contained in:
parent
07112383d3
commit
1933ccd270
|
@ -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",
|
||||||
}),
|
}),
|
||||||
|
|
Reference in New Issue