From f7df5c363c08e52a030aee828cd51c137e0ec009 Mon Sep 17 00:00:00 2001 From: Daniel Naab Date: Thu, 18 Apr 2024 20:54:01 -0500 Subject: [PATCH] Remove close button on inline pattern edit forms, and save on input instead of submit. --- .../src/FormManager/FormEdit/PatternEdit.tsx | 2 +- .../FormManager/FormEdit/PatternEditActions.tsx | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/design/src/FormManager/FormEdit/PatternEdit.tsx b/packages/design/src/FormManager/FormEdit/PatternEdit.tsx index f45f75e1..1bdd1d6e 100644 --- a/packages/design/src/FormManager/FormEdit/PatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/PatternEdit.tsx @@ -23,7 +23,7 @@ export const PatternEdit = ({ pattern }: { pattern: Pattern }) => {
{SelectedEditComponent ? (
{ + onInput={methods.handleSubmit(formData => { console.log('submitting'); updatePatternById(pattern.id, formData); })} diff --git a/packages/design/src/FormManager/FormEdit/PatternEditActions.tsx b/packages/design/src/FormManager/FormEdit/PatternEditActions.tsx index 805b0016..3e8afd4c 100644 --- a/packages/design/src/FormManager/FormEdit/PatternEditActions.tsx +++ b/packages/design/src/FormManager/FormEdit/PatternEditActions.tsx @@ -23,21 +23,6 @@ export const PatternEditActions = ({ children }: PatternEditActionsProps) => { 'margin-right-1': children, })} > -