day8 / re-com

A ClojureScript library of reusable components for Reagent

Home Page:https://re-com.day8.com.au

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hipitihop opened this issue · comments

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"]