mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 12:38:33 +02:00
♻️ Refactor application initialization.
This commit is contained in:
parent
4018e4df79
commit
6dbabf2935
25 changed files with 392 additions and 368 deletions
|
@ -6,21 +6,21 @@
|
|||
|
||||
(ns app.main.ui.static
|
||||
(:require
|
||||
[cljs.spec.alpha :as s]
|
||||
[rumext.alpha :as mf]
|
||||
[app.main.ui.context :as ctx]
|
||||
[app.main.data.auth :as da]
|
||||
[app.main.data.messages :as dm]
|
||||
[app.main.store :as st]
|
||||
[app.main.data.users :as du]
|
||||
[app.main.refs :as refs]
|
||||
[cuerdas.core :as str]
|
||||
[app.main.store :as st]
|
||||
[app.main.ui.context :as ctx]
|
||||
[app.main.ui.icons :as i]
|
||||
[app.util.i18n :refer [tr]]
|
||||
[app.util.router :as rt]
|
||||
[app.main.ui.icons :as i]))
|
||||
[cljs.spec.alpha :as s]
|
||||
[cuerdas.core :as str]
|
||||
[rumext.alpha :as mf]))
|
||||
|
||||
(defn- go-to-dashboard
|
||||
[profile]
|
||||
(let [team-id (da/current-team-id profile)]
|
||||
(let [team-id (du/get-current-team-id profile)]
|
||||
(st/emit! (rt/nav :dashboard-projects {:team-id team-id}))))
|
||||
|
||||
(mf/defc not-found
|
||||
|
@ -38,7 +38,7 @@
|
|||
[:div.sign-info
|
||||
[:span (tr "labels.not-found.auth-info") " " [:b (:email profile)]]
|
||||
[:a.btn-primary.btn-small
|
||||
{:on-click (st/emitf (da/logout))}
|
||||
{:on-click (st/emitf (du/logout))}
|
||||
(tr "labels.sign-out")]]]]]))
|
||||
|
||||
(mf/defc bad-gateway
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue