ModalRepoForm.js
388 Bytes
import { observable, useStrict, action } from 'mobx'
useStrict(true)
class ModalRepoFormStore {
@observable showModal = false
@observable name = ''
@action open() {
this.showModal = true
}
@action close() {
this.showModal = false
}
@action handleChange(e) {
this.name = e.target.value
}
@action save() {
}
}
export default new ModalRepoFormStore()