🔧 fix(types): fix indentation in TooltipComponentType to improve code readability
🔧 fix(utils): fix indentation in validateNode function to improve code readability
This commit is contained in:
parent
cc6cf4df35
commit
8e166cebf3
2 changed files with 16 additions and 15 deletions
|
|
@ -111,18 +111,18 @@ export type TooltipComponentType = {
|
||||||
children: ReactElement;
|
children: ReactElement;
|
||||||
title: string | ReactElement;
|
title: string | ReactElement;
|
||||||
placement?:
|
placement?:
|
||||||
| "bottom-end"
|
| "bottom-end"
|
||||||
| "bottom-start"
|
| "bottom-start"
|
||||||
| "bottom"
|
| "bottom"
|
||||||
| "left-end"
|
| "left-end"
|
||||||
| "left-start"
|
| "left-start"
|
||||||
| "left"
|
| "left"
|
||||||
| "right-end"
|
| "right-end"
|
||||||
| "right-start"
|
| "right-start"
|
||||||
| "right"
|
| "right"
|
||||||
| "top-end"
|
| "top-end"
|
||||||
| "top-start"
|
| "top-start"
|
||||||
| "top";
|
| "top";
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ProgressBarType = {
|
export type ProgressBarType = {
|
||||||
|
|
|
||||||
|
|
@ -200,9 +200,10 @@ export function validateNode(
|
||||||
e.targetHandle.split("|")[2] === n.id
|
e.targetHandle.split("|")[2] === n.id
|
||||||
)
|
)
|
||||||
? [
|
? [
|
||||||
`${type} is missing ${template.display_name || toNormalCase(template[t].name)
|
`${type} is missing ${
|
||||||
}.`,
|
template.display_name || toNormalCase(template[t].name)
|
||||||
]
|
}.`,
|
||||||
|
]
|
||||||
: []
|
: []
|
||||||
),
|
),
|
||||||
[] as string[]
|
[] as string[]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue