mirror of
https://github.com/penpot/penpot.git
synced 2026-03-13 22:08:27 +00:00
Simplify initialization of main app.
This commit is contained in:
@@ -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")))
|
||||
|
||||
Reference in New Issue
Block a user