1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

99: made node use SWR

This commit is contained in:
Fedor Katurov 2022-01-02 16:38:10 +07:00
parent 832386d39a
commit a1dfcc6048
27 changed files with 217 additions and 147 deletions

View file

@ -50,15 +50,6 @@ export const nodePostLocalComment = (
type: NODE_ACTIONS.POST_COMMENT,
});
export const nodeSubmitLocal = (
node: INode,
callback: (e?: string, errors?: Record<string, string>) => void
) => ({
node,
callback,
type: NODE_ACTIONS.SUBMIT_LOCAL,
});
export const nodeSetSendingComment = (is_sending_comment: boolean) => ({
is_sending_comment,
type: NODE_ACTIONS.SET_SENDING_COMMENT,