mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 06:31:27 +08:00
27 lines
437 B
JavaScript
27 lines
437 B
JavaScript
import {
|
|
OPEN_MENU,
|
|
CLOSE_MENU,
|
|
OPEN_BAN_DIALOG,
|
|
CLOSE_BAN_DIALOG,
|
|
} from './constants';
|
|
|
|
export const openMenu = id => ({
|
|
type: OPEN_MENU,
|
|
id,
|
|
});
|
|
|
|
export const closeMenu = () => ({
|
|
type: CLOSE_MENU,
|
|
});
|
|
|
|
export const openBanDialog = ({ commentId, authorId, commentStatus }) => ({
|
|
type: OPEN_BAN_DIALOG,
|
|
commentId,
|
|
authorId,
|
|
commentStatus,
|
|
});
|
|
|
|
export const closeBanDialog = () => ({
|
|
type: CLOSE_BAN_DIALOG,
|
|
});
|