24 lines
378 B
JavaScript
24 lines
378 B
JavaScript
import * as types from './actionsTypes';
|
|
|
|
export function createChannelRequest(data) {
|
|
return {
|
|
type: types.CREATE_CHANNEL.REQUEST,
|
|
data
|
|
};
|
|
}
|
|
|
|
export function createChannelSuccess(data) {
|
|
return {
|
|
type: types.CREATE_CHANNEL.SUCCESS,
|
|
data
|
|
};
|
|
}
|
|
|
|
export function createChannelFailure(err, isTeam) {
|
|
return {
|
|
type: types.CREATE_CHANNEL.FAILURE,
|
|
err,
|
|
isTeam
|
|
};
|
|
}
|