day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
796 stars 147 forks source link

"add at macro script" should ignore `p-span` & `p` components #267

Closed hipitihop closed 3 years ago

hipitihop commented 3 years ago

The rc/p & deprecated rc/p-span components do not support the keyword arguments, only child components and an optional map as the first argument for styling etc. The add at macro script currently injects the :src keyword as first and second args breaking optional first arg map e.g.

[rc/p
   {:class "instructions"}
  "Some instructions for the user"]

becomes

[rc/p 
   :src (at)
   {:class "instructions"}
  "Some instructions for the user"]