From d8528d4095359e88c2351b5a66c45f2e9f0655a8 Mon Sep 17 00:00:00 2001 From: Sergei Garin Date: Sun, 15 Dec 2024 17:15:38 +0400 Subject: [PATCH] Fix lint --- .../src/dashboard/components/EditableSpan.tsx | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/gui/src/dashboard/components/EditableSpan.tsx b/app/gui/src/dashboard/components/EditableSpan.tsx index 71f758639847..060f04e12963 100644 --- a/app/gui/src/dashboard/components/EditableSpan.tsx +++ b/app/gui/src/dashboard/components/EditableSpan.tsx @@ -15,6 +15,7 @@ import { AnimatePresence, motion, type Variants } from 'framer-motion' import { useLayoutEffect } from 'react' import type { z } from 'zod' +// eslint-disable-next-line no-restricted-syntax const MotionText = motion(Text) /** @@ -42,16 +43,16 @@ export default function EditableSpan(props: EditableSpanProps) { {editable && } {!editable && ( - - - {children} - - + {children} + )} ) @@ -263,16 +264,20 @@ function ErrorMessage(props: ErrorMessageProps) { >