mirror of
https://github.com/penpot/penpot.git
synced 2026-07-02 04:15:26 +00:00
Refactor the 6 mf/defc components across the auth flow
(login, password recovery, recovery request) to modern
mf/defc name* syntax. Modern syntax avoids per-render
JS->CLJS prop-conversion overhead.
- Rename login-page -> login-page* in
frontend/src/app/main/ui/auth/login.cljs.
- Rename
ecovery-form ->
ecovery-form* and
ecovery-page ->
ecovery-page* in
frontend/src/app/main/ui/auth/recovery.cljs.
- Rename
ecovery-form ->
ecovery-form*,
ecovery-request-page ->
ecovery-request-page*,
ecovery-sent-page ->
ecovery-sent-page* in
frontend/src/app/main/ui/auth/recovery_request.cljs
(drop redundant {::mf/props :obj} marker since the *
suffix already implies it).
- Drop unused :as props destructure bindings.
- Update internal forwarding callsites (2) and external
callers in auth.cljs (3 callsites + 3 :refer imports),
viewer/login.cljs (1 callsite + 1 :refer), and
static.cljs (2 callsites + 1 :refer).
Refs #9260
Signed-off-by: since-2017-hub <since2017hub@gmail.com>
Signed-off-by: Andrey Antukh <niwi@niwi.nz>
Co-authored-by: Andrey Antukh <niwi@niwi.nz>