♻️ Refactor profile and login.

This commit is contained in:
Andrey Antukh 2020-02-04 16:05:51 +01:00
parent 841ace3aa8
commit 146faf74a9
26 changed files with 595 additions and 664 deletions

View file

@ -6,7 +6,7 @@
;; defined by the Mozilla Public License, v. 2.0.
;;
;; Copyright (c) 2015-2017 Juan de la Cruz <delacruzgarciajuan@gmail.com>
;; Copyright (c) 2015-2019 Andrey Antukh <niwi@niwi.nz>
;; Copyright (c) 2015-2020 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.main.ui
(:require
@ -44,15 +44,13 @@
(def routes
[["/login" :login]
["/profile"
["/register" :profile-register]
["/recovery/request" :profile-recovery-request]
["/recovery" :profile-recovery]]
["/register" :profile-register]
["/recovery/request" :profile-recovery-request]
["/recovery" :profile-recovery]
["/settings"
["/profile" :settings/profile]
["/password" :settings/password]
["/notifications" :settings/notifications]]
["/profile" :settings-profile]
["/password" :settings-password]]
["/dashboard"
["/projects" :dashboard-projects]
@ -72,9 +70,8 @@
:profile-recovery-request (mf/element profile-recovery-request-page)
:profile-recovery (mf/element profile-recovery-page)
(:settings/profile
:settings/password
:settings/notifications)
(:settings-profile
:settings-password)
(mf/element settings/settings #js {:route route})
:dashboard-projects