🔧 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:
Gabriel Luiz Freitas Almeida 2023-09-18 09:59:34 -03:00
commit 8e166cebf3
2 changed files with 16 additions and 15 deletions

View file

@ -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 = {

View file

@ -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[]