From ae3a40f0e5b93c170a83275b43b6db8c30b7c80a Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Thu, 22 Aug 2024 17:51:28 -0400 Subject: [PATCH] slightly better syntax than previous while retaining indentation Signed-off-by: Anton Gilgur --- stories/popup.stories.tsx | 69 ++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/stories/popup.stories.tsx b/stories/popup.stories.tsx index 08a6c009..966aecf1 100644 --- a/stories/popup.stories.tsx +++ b/stories/popup.stories.tsx @@ -63,10 +63,12 @@ export const Prompt = () => { - ), { validate: (vals) => ({ - firstName: !vals.firstName && 'First Name is required', - lastName: !vals.lastName && 'Last Name is required', - })}); + ), { + validate: (vals) => ({ + firstName: !vals.firstName && 'First Name is required', + lastName: !vals.lastName && 'Last Name is required', + }) + }); action('Prompt values')(values); }}>Click me @@ -273,36 +275,37 @@ export const PromptWithReactCheckboxThatIsCheckedByDefaultUsernameDefaultSetToAd {(apis) => ( )}