PromucFlow_constructor/app/client/src/components/propertyControls/ActionSelectorControl.tsx
Apeksha Bhosale 4825ce2a2a
Show JS eval errors in evaluated value pane and debugger (#4463)
Co-authored-by: jsartisan <pawankumar2901@gmail.com>
Co-authored-by: hetunandu <hetu@appsmith.com>
2021-05-26 18:02:43 +05:30

30 lines
814 B
TypeScript

import React from "react";
import BaseControl, { ControlProps } from "./BaseControl";
// import DynamicActionCreator from "components/editorComponents/DynamicActionCreator";
import { ActionCreator } from "components/editorComponents/ActionCreator";
class ActionSelectorControl extends BaseControl<ControlProps> {
handleValueUpdate = (newValue: string) => {
const { propertyName } = this.props;
this.updateProperty(propertyName, newValue);
};
render() {
const { propertyValue } = this.props;
return (
<ActionCreator
additionalAutoComplete={this.props.additionalAutoComplete}
onValueChange={this.handleValueUpdate}
value={propertyValue}
/>
);
}
static getControlType() {
return "ACTION_SELECTOR";
}
}
export default ActionSelectorControl;