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

Function handleSubmit

component/ui/validModal.tsx:129–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }, [validTime])
128
129 function handleSubmit() {
130 if (Number(validTime) > dayjs().unix()) {
131 props.onConfirm()
132 } else if (process.env.PLASMO_PUBLIC_CODEBOX_SECRET3 == inputCode) {
133 let time = dayjs().add(3, "day").unix()
134 setValidTime(String(time))
135 setIsValid(true)
136 props.onConfirm()
137 } else {
138 setIsValid(false)
139 }
140 }
141
142 function handleCancel() {
143 props.onClose()

Callers 1

ValidModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected