Improve onboarding initialization

This commit is contained in:
Andrey Antukh 2024-06-07 16:46:11 +02:00 committed by Eva Marco
parent 273a5f7a0a
commit 93ac80f217
5 changed files with 26 additions and 17 deletions

View file

@ -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}

View file

@ -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