From a5a371e35deaa6d4237e54a6fabc083dcfdee647 Mon Sep 17 00:00:00 2001 From: p-sw <shinwoo.park@psw.kr> Date: Tue, 28 May 2024 21:20:51 +0900 Subject: [PATCH] refactor: change color name error to danger --- packages/react/components/Button.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/components/Button.tsx b/packages/react/components/Button.tsx index 60adb14..a0f5ba0 100644 --- a/packages/react/components/Button.tsx +++ b/packages/react/components/Button.tsx @@ -9,7 +9,7 @@ const colors = { default: "border-neutral-300 dark:border-neutral-700", success: "border-green-400 dark:border-green-600", warning: "border-yellow-400 dark:border-yellow-600", - error: "border-red-400 dark:border-red-600", + danger: "border-red-400 dark:border-red-600", }, background: { default: @@ -20,7 +20,7 @@ const colors = { "bg-green-100 dark:bg-green-900 hover:bg-green-200 dark:hover:bg-green-800", warning: "bg-yellow-100 dark:bg-yellow-900 hover:bg-yellow-200 dark:hover:bg-yellow-800", - error: "bg-red-100 dark:bg-red-900 hover:bg-red-200 dark:hover:bg-red-800", + danger: "bg-red-100 dark:bg-red-900 hover:bg-red-200 dark:hover:bg-red-800", }, underline: "decoration-black dark:decoration-white", }; @@ -39,14 +39,14 @@ const [buttonVariants, resolveVariants] = vcn({ solid: `border ${colors.border.default}`, success: `border ${colors.border.success}`, warning: `border ${colors.border.warning}`, - error: `border ${colors.border.error}`, + danger: `border ${colors.border.danger}`, }, background: { default: colors.background.default, ghost: colors.background.ghost, success: colors.background.success, warning: colors.background.warning, - error: colors.background.error, + danger: colors.background.danger, transparent: "bg-transparent hover:bg-transparent", }, decoration: {