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

floating node panel

This commit is contained in:
Fedor Katurov 2019-10-13 21:11:20 +07:00
parent 9e25b4e2b0
commit 336582b3d6
7 changed files with 200 additions and 113 deletions

View file

@ -57,7 +57,10 @@ export const NODE_TYPES = {
TEXT: 'text',
};
type INodeComponents = Record<ValueOf<typeof NODE_TYPES>, FC<{ node: INode; is_loading: boolean }>>;
type INodeComponents = Record<
ValueOf<typeof NODE_TYPES>,
FC<{ node: INode; is_loading: boolean; layout: {}; updateLayout: () => void }>
>;
export const NODE_COMPONENTS: INodeComponents = {
[NODE_TYPES.IMAGE]: NodeImageBlock,