MCPcopy Create free account
hub / github.com/027xiguapi/code-box / handleSubmit

Function handleSubmit

component/contents/validateContent.tsx:38–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 function handleSubmit() {
39 if (Number(validTime) > dayjs().unix()) {
40 props.handleOk()
41 } else if (process.env.PLASMO_PUBLIC_CODEBOX_SECRET3 == activationCode) {
42 let time = dayjs().add(7, "day").unix()
43 setValidTime(String(time))
44 setIsValid(true)
45 props.handleOk()
46 } else {
47 setIsValid(false)
48 }
49 }
50
51 function handleCancel() {
52 props.handleCancel()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected