Skip to content

Commit 71866e5

Browse files
committed
enhance(mobile): login uses bottom sheet instead of dialog
1 parent edb9f91 commit 71866e5

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/main/frontend/components/user/login.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
(fn []
4646
(when session
4747
(user/login-callback session)
48-
(notification/show! (str "Hi, " username " :)") :success)
4948
(shui/dialog-close!)
49+
(shui/popup-hide!)
5050
(when (= :user-login (state/get-current-route))
5151
(route-handler/redirect! {:to :home}))))
5252
[])

src/main/mobile/components/settings.cljs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
2626
(shui/button
2727
{:variant :default
2828
:class "text-1xl flex flex-1 w-full my-8"
29-
:on-click #(shui/dialog-open! login/page-impl
30-
{:close-btn? false
31-
:label "user-login"
32-
:align :top
33-
:content-props {:class "app-login-modal"}})}
29+
:on-click #(shui/popup-show!
30+
nil
31+
(fn []
32+
[:div.w-full.h-full
33+
(login/page-impl)])
34+
{:id :login})}
3435
"Login")
3536
;; Logged in: account cell
3637
[:div.mobile-setting-item

0 commit comments

Comments
 (0)