Small improvements over plugin manager

This commit is contained in:
alonso.torres 2024-07-05 15:16:09 +02:00
parent 6f8ce1fc5a
commit 2cc3f65323
6 changed files with 43 additions and 6 deletions

View file

@ -174,10 +174,11 @@
(mf/defc tr-html*
{::mf/props :obj}
[{:keys [content class tag-name]}]
[{:keys [content class tag-name on-click]}]
(let [tag-name (d/nilv tag-name "p")]
[:> tag-name {:dangerouslySetInnerHTML #js {:__html content}
:className class}]))
:className class
:on-click on-click}]))
;; DEPRECATED
(defn use-locale