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

fixed node actions

This commit is contained in:
Fedor Katurov 2022-01-02 18:05:52 +07:00
parent e8effb92f1
commit 0bc2ff250f
13 changed files with 107 additions and 201 deletions

View file

@ -4,11 +4,13 @@ import React, { createContext, FC, useContext } from 'react';
export interface NodeContextProps {
node: INode;
update: (node: Partial<INode>) => Promise<unknown>;
isLoading: boolean;
}
export const NodeContext = createContext<NodeContextProps>({
node: EMPTY_NODE,
update: async () => {},
isLoading: false,
});