mirror of
https://github.com/penpot/penpot.git
synced 2025-07-21 22:47:13 +02:00
💄 New UI for auth screens
This commit is contained in:
parent
727d3cfb77
commit
fa711cdd75
37 changed files with 1074 additions and 324 deletions
|
@ -7,6 +7,7 @@
|
|||
(ns app.util.i18n
|
||||
"A i18n foundation."
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.common.logging :as log]
|
||||
[app.config :as cfg]
|
||||
[app.util.dom :as dom]
|
||||
|
@ -175,8 +176,10 @@
|
|||
{::mf/wrap-props false}
|
||||
[props]
|
||||
(let [label (obj/get props "label")
|
||||
tag-name (obj/get props "tag-name" "p")]
|
||||
[:> tag-name {:dangerouslySetInnerHTML #js {:__html (tr label)}}]))
|
||||
tag-name (obj/get props "tag-name" "p")
|
||||
params (obj/get props "params" [])
|
||||
html (apply tr (d/concat-vec [label] params))]
|
||||
[:> tag-name {:dangerouslySetInnerHTML #js {:__html html}}]))
|
||||
|
||||
;; DEPRECATED
|
||||
(defn use-locale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue