mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
rename NodeComponentProps
This commit is contained in:
parent
8553f91429
commit
65196bbbbb
15 changed files with 59 additions and 45 deletions
|
@ -53,17 +53,17 @@ export const NODE_TYPES = {
|
|||
ROOM: 'room',
|
||||
};
|
||||
|
||||
export type INodeComponentProps = {
|
||||
export type NodeComponentProps = {
|
||||
node: INode;
|
||||
isLoading: boolean;
|
||||
};
|
||||
|
||||
export type INodeComponents = Record<
|
||||
ValueOf<typeof NODE_TYPES>,
|
||||
FC<INodeComponentProps>
|
||||
FC<NodeComponentProps>
|
||||
>;
|
||||
|
||||
export const LAB_PREVIEW_LAYOUT: Record<string, FC<INodeComponentProps>[]> = {
|
||||
export const LAB_PREVIEW_LAYOUT: Record<string, FC<NodeComponentProps>[]> = {
|
||||
[NODE_TYPES.IMAGE]: [LabImage, LabPad, LabNodeTitle, LabDescription],
|
||||
[NODE_TYPES.VIDEO]: [LabVideo, LabPad, LabNodeTitle, LabDescription],
|
||||
[NODE_TYPES.AUDIO]: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue