From 8e166cebf30ab18a965a159d3c75b72934cdb396 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 18 Sep 2023 09:59:34 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(types):=20fix=20indentation?= =?UTF-8?q?=20in=20TooltipComponentType=20to=20improve=20code=20readabilit?= =?UTF-8?q?y=20=F0=9F=94=A7=20fix(utils):=20fix=20indentation=20in=20valid?= =?UTF-8?q?ateNode=20function=20to=20improve=20code=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/types/components/index.ts | 24 +++++++++++----------- src/frontend/src/utils/reactflowUtils.ts | 7 ++++--- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/frontend/src/types/components/index.ts b/src/frontend/src/types/components/index.ts index 1787b501e..428f33c54 100644 --- a/src/frontend/src/types/components/index.ts +++ b/src/frontend/src/types/components/index.ts @@ -111,18 +111,18 @@ export type TooltipComponentType = { children: ReactElement; title: string | ReactElement; placement?: - | "bottom-end" - | "bottom-start" - | "bottom" - | "left-end" - | "left-start" - | "left" - | "right-end" - | "right-start" - | "right" - | "top-end" - | "top-start" - | "top"; + | "bottom-end" + | "bottom-start" + | "bottom" + | "left-end" + | "left-start" + | "left" + | "right-end" + | "right-start" + | "right" + | "top-end" + | "top-start" + | "top"; }; export type ProgressBarType = { diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index d21028c70..3459010f4 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -200,9 +200,10 @@ export function validateNode( 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[]