mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
✨ Improve onboarding initialization
This commit is contained in:
parent
273a5f7a0a
commit
93ac80f217
5 changed files with 26 additions and 17 deletions
|
@ -298,7 +298,6 @@
|
|||
:value value'
|
||||
:checked checked?}]]))]))
|
||||
|
||||
|
||||
(mf/defc image-radio-buttons
|
||||
{::mf/wrap-props false}
|
||||
[props]
|
||||
|
@ -328,6 +327,7 @@
|
|||
|
||||
(when (fn? on-change)
|
||||
(on-change name value)))))]
|
||||
|
||||
[:div {:class (if image
|
||||
class
|
||||
(dm/str class " " (stl/css :custom-radio)))}
|
||||
|
@ -336,6 +336,7 @@
|
|||
value' (encode-fn value)
|
||||
checked? (= value current-value)
|
||||
key (str/ffmt "%-%" (d/name name) (d/name value'))]
|
||||
|
||||
[:label {:for key
|
||||
:key key
|
||||
:style {:grid-area area}
|
||||
|
|
|
@ -86,7 +86,8 @@
|
|||
(mf/use-fn
|
||||
(fn [response]
|
||||
(let [team-id (:id response)]
|
||||
(st/emit! (du/update-profile-props {:onboarding-team-id team-id})
|
||||
(st/emit! (du/update-profile-props {:onboarding-team-id team-id
|
||||
:onboarding-viewed true})
|
||||
(rt/nav :dashboard-projects {:team-id team-id})))))
|
||||
|
||||
on-error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue