0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 15:09:10 -05:00

🔥 Remove goodbye page (useless).

This commit is contained in:
Andrey Antukh 2021-02-03 17:49:39 +01:00 committed by Hirunatan
parent 53be7feee1
commit 1eff1c94c4
3 changed files with 2 additions and 10 deletions

View file

@ -63,8 +63,7 @@
["/register" :auth-register]
["/recovery/request" :auth-recovery-request]
["/recovery" :auth-recovery]
["/verify-token" :auth-verify-token]
["/goodbye" :auth-goodbye]]
["/verify-token" :auth-verify-token]]
["/settings"
["/profile" :settings-profile]
@ -111,7 +110,6 @@
(case (get-in route [:data :name])
(:auth-login
:auth-register
:auth-goodbye
:auth-recovery-request
:auth-recovery)
[:& auth {:route route}]

View file

@ -29,11 +29,6 @@
[cljs.spec.alpha :as s]
[rumext.alpha :as mf]))
(mf/defc goodbye-page
[{:keys [locale] :as props}]
[:div.goodbay
[:h1 (t locale "auth.goodbye-title")]])
(mf/defc auth
[{:keys [route] :as props}]
(let [section (get-in route [:data :name])
@ -49,7 +44,6 @@
(case section
:auth-register [:& register-page {:locale locale :params params}]
:auth-login [:& login-page {:locale locale :params params}]
:auth-goodbye [:& goodbye-page {:locale locale}]
:auth-recovery-request [:& recovery-request-page {:locale locale}]
:auth-recovery [:& recovery-page {:locale locale
:params (:query-params route)}])]]))

View file

@ -31,7 +31,7 @@
(defn on-success
[x]
(st/emit! (rt/nav :auth-goodbye)))
(st/emit! (rt/nav :auth-login)))
(mf/defc delete-account-modal
{::mf/register modal/components