diff --git a/assets/js/src/form_editor/template_selection.tsx b/assets/js/src/form_editor/template_selection.tsx index dc561ce116..0e7324a74b 100644 --- a/assets/js/src/form_editor/template_selection.tsx +++ b/assets/js/src/form_editor/template_selection.tsx @@ -9,7 +9,10 @@ const App = () => ( <> - + ); diff --git a/assets/js/src/form_editor/templates/selection.tsx b/assets/js/src/form_editor/templates/selection.tsx index 033cb97cb4..9c945ff7cd 100644 --- a/assets/js/src/form_editor/templates/selection.tsx +++ b/assets/js/src/form_editor/templates/selection.tsx @@ -2,8 +2,34 @@ import React from 'react'; import Heading from 'common/typography/heading/heading'; import MailPoet from 'mailpoet'; -export default () => ( +type Template = { + id: string + name: string +}; + +type Props = { + templates: Array