Resolve list arrow movement IO-604
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
import { Button } from "antd";
|
||||
import axios from "axios";
|
||||
import gql from "graphql-tag";
|
||||
|
||||
import { JsonEditor as Editor } from "jsoneditor-react";
|
||||
import "jsoneditor-react/es/editor.min.css";
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import client from "../../utils/GraphQLClient";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { displayTemplateInWindowNoprint } from "../../utils/RenderTemplate";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
@@ -35,22 +30,22 @@ export function ShopTemplateTestRender({
|
||||
|
||||
emailEditorRef.current.exportHtml(async (data) => {
|
||||
try {
|
||||
const inlineHtml = await axios.post("/render/inlinecss", {
|
||||
html: data.html,
|
||||
url: `${window.location.protocol}://${window.location.host}/`,
|
||||
});
|
||||
// const inlineHtml = await axios.post("/render/inlinecss", {
|
||||
// html: data.html,
|
||||
// url: `${window.location.protocol}://${window.location.host}/`,
|
||||
// });
|
||||
|
||||
const { data: contextData } = await client.query({
|
||||
query: gql(query),
|
||||
variables: variables,
|
||||
fetchPolicy: "network-only",
|
||||
});
|
||||
// const { data: contextData } = await client.query({
|
||||
// query: gql(query),
|
||||
// variables: variables,
|
||||
// fetchPolicy: "network-only",
|
||||
// });
|
||||
|
||||
const renderResponse = await axios.post("/render", {
|
||||
view: inlineHtml.data,
|
||||
context: { ...contextData, bodyshop: bodyshop },
|
||||
});
|
||||
// displayTemplateInWindowNoprint(renderResponse.data);
|
||||
// const renderResponse = await axios.post("/render", {
|
||||
// view: inlineHtml.data,
|
||||
// context: { ...contextData, bodyshop: bodyshop },
|
||||
// });
|
||||
// displayTemplateInWindowNoprint(renderResponse.data);
|
||||
|
||||
setLoading(false);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user