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