Add react component support to Forms, make newsletter scheduling
components reusable
This commit is contained in:
@@ -61,6 +61,11 @@ function(
|
||||
case 'date':
|
||||
field = (<FormFieldDate {...data} />);
|
||||
break;
|
||||
|
||||
case 'reactComponent':
|
||||
console.log(data);
|
||||
field = (<data.field.component {...data} />);
|
||||
break;
|
||||
}
|
||||
|
||||
if(inline === true) {
|
||||
@@ -121,4 +126,4 @@ function(
|
||||
});
|
||||
|
||||
return FormField;
|
||||
});
|
||||
});
|
||||
|
@@ -30,4 +30,4 @@ function(
|
||||
});
|
||||
|
||||
return FormFieldText;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user