mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -05:00
Simplify initialization of main app.
This commit is contained in:
parent
74bcdd2507
commit
768004aed8
2 changed files with 2 additions and 7 deletions
|
@ -8,12 +8,10 @@
|
|||
(:require [uxbox.store :as st]
|
||||
[uxbox.main.locales :as lc]
|
||||
[uxbox.main.ui :as ui]
|
||||
[uxbox.main.state :refer [initial-state]]
|
||||
[uxbox.util.storage :refer [storage]]))
|
||||
[uxbox.main.state :refer [initial-state]]))
|
||||
|
||||
(defn ^:export init
|
||||
[]
|
||||
(lc/init)
|
||||
(st/init initial-state)
|
||||
(ui/init-routes)
|
||||
(ui/init))
|
||||
|
|
|
@ -164,12 +164,9 @@
|
|||
|
||||
;; --- Main Entry Point
|
||||
|
||||
(defn init-routes
|
||||
[]
|
||||
(rt/init routes))
|
||||
|
||||
(defn init
|
||||
[]
|
||||
(rt/init routes))
|
||||
(mx/mount (app) (dom/get-element "app"))
|
||||
(mx/mount (lightbox) (dom/get-element "lightbox"))
|
||||
(mx/mount (loader) (dom/get-element "loader")))
|
||||
|
|
Loading…
Add table
Reference in a new issue