mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
Merge pull request #5621 from penpot/marina/testab-hover-state-add-file
✨ A/B test switching '+' to 'Add file' in an empty project
This commit is contained in:
commit
b8fd829f9d
4 changed files with 539 additions and 519 deletions
|
@ -7,6 +7,7 @@
|
||||||
(ns app.main.ui.dashboard.placeholder
|
(ns app.main.ui.dashboard.placeholder
|
||||||
(:require-macros [app.main.style :as stl])
|
(:require-macros [app.main.style :as stl])
|
||||||
(:require
|
(:require
|
||||||
|
[app.config :as cf]
|
||||||
[app.main.ui.ds.product.empty-placeholder :refer [empty-placeholder*]]
|
[app.main.ui.ds.product.empty-placeholder :refer [empty-placeholder*]]
|
||||||
[app.main.ui.ds.product.loader :refer [loader*]]
|
[app.main.ui.ds.product.loader :refer [loader*]]
|
||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
|
@ -44,7 +45,7 @@
|
||||||
[:div {:class (stl/css :grid-empty-placeholder)}
|
[:div {:class (stl/css :grid-empty-placeholder)}
|
||||||
[:button {:class (stl/css :create-new)
|
[:button {:class (stl/css :create-new)
|
||||||
:on-click on-click}
|
:on-click on-click}
|
||||||
i/add]])))
|
(if (cf/external-feature-flag "add-file-01" "test") (tr "dashboard.add-file") i/add)]])))
|
||||||
|
|
||||||
(mf/defc loading-placeholder
|
(mf/defc loading-placeholder
|
||||||
[]
|
[]
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: $s-160;
|
height: $s-160;
|
||||||
margin: $s-8;
|
margin: $s-8;
|
||||||
text-transform: uppercase;
|
|
||||||
border: $s-2 solid transparent;
|
border: $s-2 solid transparent;
|
||||||
width: var(--th-width, #{g.$thumbnail-default-width});
|
width: var(--th-width, #{g.$thumbnail-default-width});
|
||||||
height: var(--th-height, #{g.$thumbnail-default-height});
|
height: var(--th-height, #{g.$thumbnail-default-height});
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -394,6 +394,10 @@ msgstr "El token expirará el %s"
|
||||||
msgid "dashboard.access-tokens.token-will-not-expire"
|
msgid "dashboard.access-tokens.token-will-not-expire"
|
||||||
msgstr "El token no tiene fecha de expiración"
|
msgstr "El token no tiene fecha de expiración"
|
||||||
|
|
||||||
|
#: src/app/main/ui/dashboard/placeholder.cljs:48
|
||||||
|
msgid "dashboard.add-file"
|
||||||
|
msgstr "Añadir archivo"
|
||||||
|
|
||||||
#: src/app/main/ui/dashboard/file_menu.cljs:311, src/app/main/ui/workspace/main_menu.cljs:585
|
#: src/app/main/ui/dashboard/file_menu.cljs:311, src/app/main/ui/workspace/main_menu.cljs:585
|
||||||
msgid "dashboard.add-shared"
|
msgid "dashboard.add-shared"
|
||||||
msgstr "Añadir como Biblioteca Compartida"
|
msgstr "Añadir como Biblioteca Compartida"
|
||||||
|
|
Loading…
Add table
Reference in a new issue