mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 08:38:23 +02:00
✨ Minor improvements on section initialization.
This commit is contained in:
parent
daeaf14032
commit
8af46ac7fc
11 changed files with 96 additions and 82 deletions
|
@ -23,10 +23,11 @@
|
|||
(mf/use-effect
|
||||
(mf/deps team)
|
||||
(fn []
|
||||
(dom/set-html-title (tr "title.dashboard.shared-libraries"
|
||||
(if (:is-default team)
|
||||
(tr "dashboard.your-penpot")
|
||||
(:name team))))))
|
||||
(when team
|
||||
(let [tname (if (:is-default team)
|
||||
(tr "dashboard.your-penpot")
|
||||
(:name team))]
|
||||
(dom/set-html-title (tr "title.dashboard.shared-libraries" tname))))))
|
||||
|
||||
(mf/use-effect
|
||||
(st/emitf (dd/fetch-shared-files)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue