Lint all the things
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { Button } from "antd";
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@@ -32,7 +32,7 @@ export default function ShopTemplateSaveButton({ templateId, gql, emailEditorRef
|
||||
}
|
||||
}
|
||||
});
|
||||
if (!!!result.errors) {
|
||||
if (!result.errors) {
|
||||
notification["success"]({
|
||||
message: t("templates.successes.updated")
|
||||
});
|
||||
@@ -48,7 +48,7 @@ export default function ShopTemplateSaveButton({ templateId, gql, emailEditorRef
|
||||
};
|
||||
|
||||
return (
|
||||
<Button disabled={!!!templateId} loading={loading} onClick={handleSave}>
|
||||
<Button disabled={!templateId} loading={loading} onClick={handleSave}>
|
||||
{t("general.actions.save")}
|
||||
</Button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user