From 996e4209d4f0fd8df2bbcb33250f481ef3134973 Mon Sep 17 00:00:00 2001 From: mirovladimitrovski Date: Mon, 5 Jun 2023 13:31:57 +0200 Subject: [PATCH] fix: run prettier in FormSection --- src/components/Form/FormSection.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Form/FormSection.tsx b/src/components/Form/FormSection.tsx index 5fdb4fa43..d7d38d1de 100644 --- a/src/components/Form/FormSection.tsx +++ b/src/components/Form/FormSection.tsx @@ -152,15 +152,14 @@ export function FormSection({

{label}

{isBusy && isEditing && } - {content && ( - isEditing ? ( + {content && + (isEditing ? (
event.preventDefault()}> {content({ values, isEditing, isBusy, onChange, errors: formErrors })}
) : (
{content({ values, isEditing, isBusy, onChange })}
- ) - )} + ))} {(saveButton || editButton || cancelButton) && (
{isEditing ? (