Add react component support to Forms, make newsletter scheduling

components reusable
This commit is contained in:
Tautvidas Sipavičius
2016-04-01 14:00:52 +03:00
parent c1a3ba67f5
commit 104620a40a
9 changed files with 301 additions and 145 deletions

View File

@@ -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;
});
});

View File

@@ -30,4 +30,4 @@ function(
});
return FormFieldText;
});
});