Added template previewing with non-functional GQL editor BOD-126

This commit is contained in:
Patrick Fic
2020-09-03 16:14:30 -07:00
parent f4fed87f61
commit 051be83303
16 changed files with 50580 additions and 40 deletions

View File

@@ -18,11 +18,9 @@ export default function ShopTemplateSaveButton({
logImEXEvent("shop_template_update");
emailEditorRef.current.exportHtml(async (data) => {
console.log("RAW", data.html);
inlineCss(data.html, {
url: `${window.location.protocol}://${window.location.host}/`,
}).then(async function (inlineHtml) {
console.log("Inline :>> ", inlineHtml);
const result = await updateTemplate({
variables: {
templateId: templateId,