mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 21:41:40 +02:00
🎉 Test A/B for starting with light theme
This commit is contained in:
parent
380ead2ad6
commit
b0af94415f
4 changed files with 21 additions and 7 deletions
|
@ -49,11 +49,16 @@
|
|||
(not= section :auth-register-success))
|
||||
params (:query-params route)
|
||||
error (:error params)
|
||||
hide-image-auth? (cf/external-feature-flag "signup-01" "test")]
|
||||
hide-image-auth? (cf/external-feature-flag "signup-01" "test")
|
||||
default-light? (cf/external-feature-flag "onboarding-02" "test")]
|
||||
|
||||
(mf/with-effect []
|
||||
(dom/set-html-title (tr "title.default")))
|
||||
|
||||
(mf/with-effect [default-light?]
|
||||
(when default-light?
|
||||
(dom/set-html-theme-color "light")))
|
||||
|
||||
(mf/with-effect [error]
|
||||
(when error
|
||||
(st/emit! (du/show-redirect-error error))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue