feat: add hover action support (#3994)
Co-authored-by: LawyZheng <lawyzheng1106@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ type Props = {
|
||||
|
||||
const icons: Partial<Record<ActionType, React.ReactNode>> = {
|
||||
click: <CursorArrowIcon className="h-4 w-4" />,
|
||||
hover: <CursorArrowIcon className="h-4 w-4" />,
|
||||
input_text: <InputIcon className="h-4 w-4" />,
|
||||
};
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ type Props = {
|
||||
|
||||
const icons: Partial<Record<ActionType, React.ReactNode>> = {
|
||||
click: <CursorArrowIcon className="h-4 w-4" />,
|
||||
hover: <CursorArrowIcon className="h-4 w-4" />,
|
||||
complete: <CheckCircledIcon className="h-4 w-4" />,
|
||||
input_text: <InputIcon className="h-4 w-4" />,
|
||||
};
|
||||
|
||||
@@ -18,6 +18,8 @@ function getActionInput(action: ActionApiResponse) {
|
||||
input = action.text;
|
||||
} else if (action.action_type === ActionTypes.Click) {
|
||||
input = "Click";
|
||||
} else if (action.action_type === ActionTypes.Hover) {
|
||||
input = "Hover";
|
||||
} else if (action.action_type === ActionTypes.SelectOption && action.option) {
|
||||
input = action.option.label;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user