Lint all the things
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
import { Button } from "antd";
|
||||
import { JsonEditor as Editor } from "jsoneditor-react";
|
||||
import "jsoneditor-react/es/editor.min.css";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
const mapStateToProps = createStructuredSelector({});
|
||||
const mapDispatchToProps = () => ({
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
});
|
||||
|
||||
export function ShopTemplateTestRender({ bodyshop, query, emailEditorRef, style }) {
|
||||
export function ShopTemplateTestRender({ emailEditorRef, style }) {
|
||||
const [variables, setVariables] = useState({ id: "uuid" });
|
||||
const [loading, setLoading] = useState(false);
|
||||
const { t } = useTranslation();
|
||||
@@ -23,7 +20,7 @@ export function ShopTemplateTestRender({ bodyshop, query, emailEditorRef, style
|
||||
try {
|
||||
setLoading(true);
|
||||
|
||||
emailEditorRef.current.exportHtml(async (data) => {
|
||||
emailEditorRef.current.exportHtml(async () => {
|
||||
try {
|
||||
setLoading(false);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user