🎉 Add flex layout playground template to the dashboard carousel

This commit is contained in:
Andrey Antukh 2023-07-28 12:53:28 +02:00
parent 6eaa905f0c
commit f174264f7f
5 changed files with 8 additions and 14 deletions

View file

@ -150,8 +150,9 @@
(mf/defc templates-section
{::mf/wrap-props false}
[{:keys [default-project-id profile project-id team-id content-width]}]
(let [templates (->> (mf/deref builtin-templates)
(filter #(not= (:id %) "tutorial-for-beginners")))
(let [templates (mf/deref builtin-templates)
templates (mf/with-memo [templates]
(filterv #(not= (:id %) "tutorial-for-beginners") templates))
route (mf/deref refs/route)
route-name (get-in route [:data :name])