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:
parent
832386d39a
commit
a1dfcc6048
27 changed files with 217 additions and 147 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue