mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 22:51:37 +02:00
♻️ Refactor profile and login.
This commit is contained in:
parent
841ace3aa8
commit
146faf74a9
26 changed files with 595 additions and 664 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue