mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 23:19:28 +00:00
WIP: fix dashboard navigation issues.
This commit is contained in:
parent
2036bb6fbb
commit
21d564b609
@ -1,11 +1,11 @@
|
|||||||
(ns uxbox.ui.navigation
|
(ns uxbox.ui.navigation
|
||||||
(:require [goog.events :as events]))
|
(:require [sablono.core :as html :refer-macros [html]]
|
||||||
|
[goog.events :as events]
|
||||||
|
[uxbox.ui.dom :as dom]))
|
||||||
|
|
||||||
(defn link
|
(defn link
|
||||||
"Given an href and a component, return a link component that will navigate
|
"Given an href and a component, return a link component that will navigate
|
||||||
to the given URI withour reloading the page."
|
to the given URI withour reloading the page."
|
||||||
[href component]
|
[href component]
|
||||||
[:a
|
(html
|
||||||
{:href href
|
[:a {:href (str "/#" href)} component]))
|
||||||
:on-click #(do (.preventDefault %) (set-uri! href))}
|
|
||||||
component])
|
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
(html
|
(html
|
||||||
[:header#workspace-bar.workspace-bar
|
[:header#workspace-bar.workspace-bar
|
||||||
[:div.main-icon
|
[:div.main-icon
|
||||||
(nav/link (r/route-for :dashboard) i/logo-icon)]
|
(nav/link (r/route-for :main/dashboard) i/logo-icon)]
|
||||||
[:div.project-tree-btn
|
[:div.project-tree-btn
|
||||||
{:on-click (constantly nil)}
|
{:on-click (constantly nil)}
|
||||||
i/project-tree
|
i/project-tree
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user