mirror of
https://github.com/penpot/penpot.git
synced 2025-02-23 23:35:58 -05:00
🐛 Use correct jsx handler on team choice form
This commit is contained in:
parent
4d54768875
commit
9ed6d5f360
2 changed files with 9 additions and 12 deletions
|
@ -288,8 +288,7 @@
|
|||
(mf/defc submit-button*
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [on-click children label form class-name name disabled] :as props}]
|
||||
(let [form (or (unchecked-get props "form")
|
||||
(mf/use-ctx form-ctx))
|
||||
(let [form (or form (mf/use-ctx form-ctx))
|
||||
|
||||
disabled? (or (and (some? form) (not (:valid @form)))
|
||||
(true? disabled))
|
||||
|
@ -315,8 +314,7 @@
|
|||
(obj/set! "name" name)
|
||||
(obj/set! "label" mf/undefined)
|
||||
(obj/set! "className" class)
|
||||
(obj/set! "type" "submit"))
|
||||
]
|
||||
(obj/set! "type" "submit"))]
|
||||
|
||||
[:> "button" props
|
||||
(if (some? children)
|
||||
|
|
|
@ -102,8 +102,8 @@
|
|||
:label (tr "onboarding.choice.team-up.create-team-placeholder")}]
|
||||
|
||||
[:div {:class (stl/css :action-buttons)}
|
||||
[:& fm/submit-button*
|
||||
{:className (stl/css :accept-button)
|
||||
[:> fm/submit-button*
|
||||
{:class (stl/css :accept-button)
|
||||
:label (tr "onboarding.choice.team-up.continue-creating-team")}]]]]
|
||||
[:div {:class (stl/css :second-block)}
|
||||
[:h2 {:class (stl/css :modal-title)}
|
||||
|
@ -236,12 +236,11 @@
|
|||
:step 2}))}
|
||||
(tr "labels.back")]
|
||||
|
||||
[:& fm/submit-button*
|
||||
{:className (stl/css :accept-button)
|
||||
:label
|
||||
(if (> (count emails) 0)
|
||||
(tr "onboarding.choice.team-up.create-team-and-invite")
|
||||
(tr "onboarding.choice.team-up.create-team-without-invite"))}]]
|
||||
[:> fm/submit-button*
|
||||
{:class (stl/css :accept-button)
|
||||
:label (if (> (count emails) 0)
|
||||
(tr "onboarding.choice.team-up.create-team-and-invite")
|
||||
(tr "onboarding.choice.team-up.create-team-without-invite"))}]]
|
||||
[:div {:class (stl/css :modal-hint)}
|
||||
(tr "onboarding.choice.team-up.create-team-and-send-invites-description")]]]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue