Added new HTML editor with some breaking changes.
This commit is contained in:
@@ -19,14 +19,14 @@ export default function ShopTemplateEditorContainer() {
|
||||
});
|
||||
|
||||
if (!!!search.customTemplateId) return <span>No selection.</span>;
|
||||
if (error) return <AlertComponent message={error.message} type='error' />;
|
||||
if (error) return <AlertComponent message={error.message} type="error" />;
|
||||
|
||||
return (
|
||||
<LoadingSpinner loading={loading}>
|
||||
{data && data.templates_by_pk ? data.templates_by_pk.name : ""}
|
||||
<ShopTemplateEditorComponent
|
||||
templateId={search.customTemplateId}
|
||||
html={data && data.templates_by_pk ? data.templates_by_pk.html : ""}
|
||||
json={data && data.templates_by_pk && data.templates_by_pk.jsontemplate}
|
||||
gql={data && data.templates_by_pk ? data.templates_by_pk.query : ""}
|
||||
editorState={editorState}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user