diff --git a/frontend/lib/registry/components/button-primary/ButtonPrimaryComponent.tsx b/frontend/lib/registry/components/button-primary/ButtonPrimaryComponent.tsx index dd3951b9..fc86ceb7 100644 --- a/frontend/lib/registry/components/button-primary/ButtonPrimaryComponent.tsx +++ b/frontend/lib/registry/components/button-primary/ButtonPrimaryComponent.tsx @@ -195,17 +195,6 @@ export const ButtonPrimaryComponent: React.FC = ({ const buttonColor = getLabelColor(); - // 그라데이션용 어두운 색상 계산 - const getDarkColor = (baseColor: string) => { - const hex = baseColor.replace("#", ""); - const r = Math.max(0, parseInt(hex.substr(0, 2), 16) - 40); - const g = Math.max(0, parseInt(hex.substr(2, 2), 16) - 40); - const b = Math.max(0, parseInt(hex.substr(4, 2), 16) - 40); - return `#${r.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}`; - }; - - const buttonDarkColor = getDarkColor(buttonColor); - // 액션 설정 처리 - DB에서 문자열로 저장된 액션을 객체로 변환 const processedConfig = { ...componentConfig }; if (componentConfig.action && typeof componentConfig.action === "string") { @@ -545,16 +534,14 @@ export const ButtonPrimaryComponent: React.FC = ({