chore: fix IUser import
This commit is contained in:
parent
928fac17de
commit
c471195d8c
|
@ -1,10 +1,10 @@
|
|||
import { Action } from 'redux';
|
||||
|
||||
import { IUser } from '../definitions';
|
||||
import { ISelectedUser } from '../reducers/selectedUsers';
|
||||
import * as types from './actionsTypes';
|
||||
|
||||
type User = {
|
||||
user: IUser;
|
||||
user: ISelectedUser;
|
||||
};
|
||||
|
||||
type IAction = Action & User;
|
||||
|
@ -15,14 +15,14 @@ interface SetLoading extends Action {
|
|||
|
||||
export type IActionSelectedUsers = IAction & SetLoading;
|
||||
|
||||
export function addUser(user: IUser): IAction {
|
||||
export function addUser(user: ISelectedUser): IAction {
|
||||
return {
|
||||
type: types.SELECTED_USERS.ADD_USER,
|
||||
user
|
||||
};
|
||||
}
|
||||
|
||||
export function removeUser(user: IUser): IAction {
|
||||
export function removeUser(user: ISelectedUser): IAction {
|
||||
return {
|
||||
type: types.SELECTED_USERS.REMOVE_USER,
|
||||
user
|
||||
|
|
Loading…
Reference in New Issue