Fix named exports for state (#3578)

This commit is contained in:
LoaiDev 2021-09-11 21:20:53 +02:00 committed by GitHub
parent ded71c9af1
commit 9f00c353b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ export interface AdminServerStore {
removeSelectedServer: Action<AdminServerStore, number>;
}
const roles: AdminServerStore = {
const servers: AdminServerStore = {
selectedServers: [],
setSelectedServers: action((state, payload) => {
@ -24,4 +24,4 @@ const roles: AdminServerStore = {
}),
};
export default roles;
export default servers;

View file

@ -8,7 +8,7 @@ export interface AdminUserStore {
removeSelectedUser: Action<AdminUserStore, number>;
}
const roles: AdminUserStore = {
const users: AdminUserStore = {
selectedUsers: [],
setSelectedUsers: action((state, payload) => {
@ -24,4 +24,4 @@ const roles: AdminUserStore = {
}),
};
export default roles;
export default users;