init project portal web
This commit is contained in:
23
lib/login/store/index.ts
Normal file
23
lib/login/store/index.ts
Normal file
@ -0,0 +1,23 @@
|
||||
// stores/loginStore.ts
|
||||
import { makeAutoObservable } from "mobx";
|
||||
|
||||
class LoginStore {
|
||||
username = "";
|
||||
password = "";
|
||||
|
||||
constructor() {
|
||||
makeAutoObservable(this);
|
||||
}
|
||||
|
||||
setUsername(username: string) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
setPassword(password: string) {
|
||||
this.password = password;
|
||||
}
|
||||
}
|
||||
|
||||
const loginStore = new LoginStore();
|
||||
|
||||
export default loginStore;
|
||||
Reference in New Issue
Block a user