mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 20:36:15 +02:00
🎉 Add register confirmation page.
This commit is contained in:
parent
1eff1c94c4
commit
c14dbc19f8
5 changed files with 97 additions and 59 deletions
|
@ -122,12 +122,12 @@
|
|||
i/arrow-slide]]]))
|
||||
|
||||
(mf/defc submit-button
|
||||
[{:keys [label form on-click] :as props}]
|
||||
[{:keys [label form on-click disabled] :as props}]
|
||||
(let [form (or form (mf/use-ctx form-ctx))]
|
||||
[:input.btn-primary.btn-large
|
||||
{:name "submit"
|
||||
:class (when-not (:valid @form) "btn-disabled")
|
||||
:disabled (not (:valid @form))
|
||||
:disabled (or (not (:valid @form)) (true? disabled))
|
||||
:on-click on-click
|
||||
:value label
|
||||
:type "submit"}]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue