mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-05 09:36:41 +07:00
added delete message action
This commit is contained in:
parent
47cd66496b
commit
600b8bb1e8
3 changed files with 15 additions and 2 deletions
|
@ -65,6 +65,11 @@ export const authSendMessage = (message: Partial<IMessage>, onSuccess) => ({
|
|||
onSuccess,
|
||||
});
|
||||
|
||||
export const authDeleteMessage = (id: IMessage['id']) => ({
|
||||
type: AUTH_USER_ACTIONS.DELETE_MESSAGE,
|
||||
id,
|
||||
});
|
||||
|
||||
export const authSetUpdates = (updates: Partial<IAuthState['updates']>) => ({
|
||||
type: AUTH_USER_ACTIONS.SET_UPDATES,
|
||||
updates,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue