{
>
- setActionUrl(input.currentTarget.value.trim())}
- type="url"
- pattern={DEFAULT_TEXTFIELD_URL_PATTERN}
+
+
+ {actionType === 'html' ? (
+
+
+
+ ) : (
+
+ setActionUrl(input.currentTarget.value.trim())}
+ type="url"
+ pattern={DEFAULT_TEXTFIELD_URL_PATTERN}
+ />
+
+ )}
{
Optional background color of the action button.
-
-
- Open in a new tab instead of within your page.
-
-
+ {actionType === 'html' ? null : (
+
+
+ Open in a new tab instead of within your page.
+
+
+ )}
);
@@ -177,6 +227,7 @@ const Actions = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
const [submitStatus, setSubmitStatus] = useState(null);
const [editAction, setEditAction] = useState