mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
cleanup
This commit is contained in:
parent
ef05db623d
commit
ba0521b0e1
@ -1,22 +1,18 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import * as antd from "antd"
|
import * as antd from "antd"
|
||||||
import { Input } from "antd-mobile"
|
|
||||||
import classnames from "classnames"
|
import classnames from "classnames"
|
||||||
import NFCModel from "comty.js/models/nfc"
|
import NFCModel from "comty.js/models/nfc"
|
||||||
import { Icons } from "components/Icons"
|
import { Icons } from "components/Icons"
|
||||||
|
|
||||||
import AnimationPlayer from "components/AnimationPlayer"
|
|
||||||
|
|
||||||
import StepsContext from "./context"
|
import StepsContext from "./context"
|
||||||
import NFC_ERRORS from "./errors"
|
|
||||||
|
|
||||||
import "./index.less"
|
|
||||||
|
|
||||||
import CheckRegister from "./steps/check_register"
|
import CheckRegister from "./steps/check_register"
|
||||||
import DataEditor from "./steps/data_editor"
|
import DataEditor from "./steps/data_editor"
|
||||||
import TagWritter from "./steps/tag_writter"
|
import TagWritter from "./steps/tag_writter"
|
||||||
import Success from "./steps/success"
|
import Success from "./steps/success"
|
||||||
|
|
||||||
|
import "./index.less"
|
||||||
|
|
||||||
const RegisterNewTagSteps = [
|
const RegisterNewTagSteps = [
|
||||||
CheckRegister,
|
CheckRegister,
|
||||||
DataEditor,
|
DataEditor,
|
||||||
@ -205,9 +201,7 @@ class OwnTags extends React.Component {
|
|||||||
return ownedTag.serial === tag.serialNumber
|
return ownedTag.serial === tag.serialNumber
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(ownedTag)
|
if (!ownedTag && app.DrawerController.drawersLength() === 0) {
|
||||||
|
|
||||||
if (!ownedTag) {
|
|
||||||
app.message.error("This tag is not registered or you don't have permission to edit it.")
|
app.message.error("This tag is not registered or you don't have permission to edit it.")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import * as antd from "antd"
|
import * as antd from "antd"
|
||||||
import { Input } from "antd-mobile"
|
import { Input } from "antd-mobile"
|
||||||
import NFCModel from "comty.js/models/nfc"
|
|
||||||
import { Icons } from "components/Icons"
|
import { Icons } from "components/Icons"
|
||||||
|
|
||||||
|
import NFCModel from "comty.js/models/nfc"
|
||||||
|
|
||||||
import StepsContext from "../../context"
|
import StepsContext from "../../context"
|
||||||
|
|
||||||
export default (props) => {
|
export default (props) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user