버튼 버그 수정

This commit is contained in:
kjs
2025-09-12 14:24:42 +09:00
parent b071d8090b
commit 49e8e40521

View File

@@ -16,36 +16,24 @@ export interface ButtonPrimaryConfigPanelProps {
* ButtonPrimary 설정 패널
* 컴포넌트의 설정값들을 편집할 수 있는 UI 제공
*/
export const ButtonPrimaryConfigPanel: React.FC<ButtonPrimaryConfigPanelProps> = ({
config,
onChange,
}) => {
export const ButtonPrimaryConfigPanel: React.FC<ButtonPrimaryConfigPanelProps> = ({ config, onChange }) => {
const handleChange = (key: keyof ButtonPrimaryConfig, value: any) => {
onChange({ [key]: value });
};
return (
<div className="space-y-4">
<div className="text-sm font-medium">
button-primary
</div>
<div className="text-sm font-medium">button-primary </div>
{/* 버튼 관련 설정 */}
{/* 버튼 관련 설정 */}
<div className="space-y-2">
<Label htmlFor="text"> </Label>
<Input
id="text"
value={config.text || ""}
onChange={(e) => handleChange("text", e.target.value)}
/>
<Input id="text" value={config.text || ""} onChange={(e) => handleChange("text", e.target.value)} />
</div>
<div className="space-y-2">
<Label htmlFor="actionType"> </Label>
<Select
value={config.actionType || "button"}
onValueChange={(value) => handleChange("actionType", value)}
>
<Select value={config.actionType || "button"} onValueChange={(value) => handleChange("actionType", value)}>
<SelectTrigger>
<SelectValue />
</SelectTrigger>