From ba0521b0e1ed63ec664a3801bcb43fe551ed96f3 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 20 Jun 2023 23:18:41 +0000 Subject: [PATCH] cleanup --- packages/app/constants/settings/tap_share/index.jsx | 12 +++--------- .../settings/tap_share/steps/data_editor/index.jsx | 3 ++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/app/constants/settings/tap_share/index.jsx b/packages/app/constants/settings/tap_share/index.jsx index 735f92a7..5ac55125 100644 --- a/packages/app/constants/settings/tap_share/index.jsx +++ b/packages/app/constants/settings/tap_share/index.jsx @@ -1,22 +1,18 @@ import React from "react" import * as antd from "antd" -import { Input } from "antd-mobile" import classnames from "classnames" import NFCModel from "comty.js/models/nfc" import { Icons } from "components/Icons" -import AnimationPlayer from "components/AnimationPlayer" - import StepsContext from "./context" -import NFC_ERRORS from "./errors" - -import "./index.less" import CheckRegister from "./steps/check_register" import DataEditor from "./steps/data_editor" import TagWritter from "./steps/tag_writter" import Success from "./steps/success" +import "./index.less" + const RegisterNewTagSteps = [ CheckRegister, DataEditor, @@ -205,9 +201,7 @@ class OwnTags extends React.Component { return ownedTag.serial === tag.serialNumber }) - console.log(ownedTag) - - if (!ownedTag) { + if (!ownedTag && app.DrawerController.drawersLength() === 0) { app.message.error("This tag is not registered or you don't have permission to edit it.") return false } diff --git a/packages/app/constants/settings/tap_share/steps/data_editor/index.jsx b/packages/app/constants/settings/tap_share/steps/data_editor/index.jsx index cbc73a93..7d44edf6 100644 --- a/packages/app/constants/settings/tap_share/steps/data_editor/index.jsx +++ b/packages/app/constants/settings/tap_share/steps/data_editor/index.jsx @@ -1,9 +1,10 @@ import React from "react" import * as antd from "antd" import { Input } from "antd-mobile" -import NFCModel from "comty.js/models/nfc" import { Icons } from "components/Icons" +import NFCModel from "comty.js/models/nfc" + import StepsContext from "../../context" export default (props) => {