Skip to content

Commit

Permalink
chore: rename components.sidebar to components.container
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Apr 12, 2023
1 parent d9cfebd commit e04ec1d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns frontend.components.sidebar
(ns frontend.components.container
(:require [cljs-drag-n-drop.core :as dnd]
[clojure.string :as string]
[frontend.components.find-in-page :as find-in-page]
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/main/frontend/components/home.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns frontend.components.home
(:require [rum.core :as rum]
[frontend.components.sidebar :as sidebar]))
[frontend.components.container :as container]))

(rum/defc home
[]
(sidebar/main-content))
(container/main-content))
8 changes: 4 additions & 4 deletions src/main/frontend/page.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(:require [rum.core :as rum]
[frontend.state :as state]
[frontend.ui :as ui]
[frontend.components.sidebar :as sidebar]
[frontend.components.container :as container]
[frontend.handler.search :as search-handler]
[frontend.handler.notification :as notification]
[frontend.components.onboarding.quick-tour :as quick-tour]
Expand All @@ -29,7 +29,7 @@
component is purposefully stupid simple as it needs to render under any number
of broken conditions"
[]
;; This layout emulates most of sidebar/sidebar
;; This layout emulates most of container/sidebar
[:div#main-container.cp__sidebar-main-layout.flex-1.flex
[:div.#app-container
[:div#left-container
Expand Down Expand Up @@ -104,7 +104,7 @@
(helpful-default-error-screen)
(if (= :draw route-name)
(view route-match)
(sidebar/sidebar
(container/sidebar
route-match
(view route-match))))))))

Expand All @@ -113,7 +113,7 @@
;; no-animate? (contains? #{:repos :repo-add :file}
;; route-name)]
;; (when-let [view (:view (:data route-match))]
;; (sidebar/sidebar
;; (container/sidebar
;; route-match
;; (if no-animate?
;; (route-view view route-match)
Expand Down

0 comments on commit e04ec1d

Please sign in to comment.