mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 13:31:40 +02:00
✨ Do not show the templates modal on onboarding
This commit is contained in:
parent
3d8f757712
commit
75a8f85ebb
8 changed files with 38 additions and 42 deletions
|
@ -18,7 +18,7 @@
|
|||
[:div.grid-item]]
|
||||
|
||||
(true? default?)
|
||||
[:div.grid-empty-placeholder.drafts
|
||||
[:div.grid-empty-placeholder.drafts {:data-test "empty-placeholder"}
|
||||
[:div.text
|
||||
[:& i18n/tr-html {:label "dashboard.empty-placeholder-drafts"}]]]
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
;; the onboarding templates modal.
|
||||
on-fly-solo
|
||||
(fn []
|
||||
(tm/schedule 400 #(st/emit! (modal/show {:type :onboarding-templates}))))
|
||||
(tm/schedule 400 #(st/emit! (modal/hide))))
|
||||
|
||||
;; When user choices the option of `team up`, we proceed to show
|
||||
;; the team creation modal.
|
||||
|
@ -121,14 +121,12 @@
|
|||
on-success
|
||||
(mf/use-callback
|
||||
(fn [_form response]
|
||||
(let [project-id (:default-project-id response)
|
||||
team-id (:id response)]
|
||||
(let [team-id (:id response)]
|
||||
(st/emit!
|
||||
(modal/hide)
|
||||
(rt/nav :dashboard-projects {:team-id team-id}))
|
||||
(tm/schedule 400 #(st/emit!
|
||||
(modal/show {:type :onboarding-templates
|
||||
:project-id project-id}))))))
|
||||
(modal/hide))))))
|
||||
|
||||
on-error
|
||||
(mf/use-callback
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
:data-test "close-templates-btn"} i/close]]
|
||||
|
||||
[:div.modal-content
|
||||
[:h3 {:data-test "onboarding-templates-title"} (tr "onboarding.templates.title")]
|
||||
[:h3 (tr "onboarding.templates.title")]
|
||||
[:p (tr "onboarding.templates.subtitle")]
|
||||
|
||||
[:div.templates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue