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