Remove warnings for function version of the icons
This commit is contained in:
@ -8,7 +8,7 @@ defmodule Heroicons do
|
||||
|
||||
<Heroicons.Solid.arrow_circle_right class="w-6 h-6" />
|
||||
|
||||
Functions are also provided but deprecated
|
||||
Can also be used as a function
|
||||
|
||||
<%= Heroicons.Outline.adjustments() %>
|
||||
|
||||
|
@ -32,7 +32,7 @@ defmodule Heroicons.Generator do
|
||||
|
||||
<.#{name} class="h-6 w-6 text-gray-500" />
|
||||
|
||||
Can also be used as a function (deprecated)
|
||||
or as a function
|
||||
|
||||
<%= #{name}() %>
|
||||
|
||||
@ -60,11 +60,6 @@ defmodule Heroicons.Generator do
|
||||
end
|
||||
|
||||
def unquote(name)(opts) when is_list(opts) do
|
||||
IO.warn(
|
||||
"<%= #{unquote(name)}(class: \"...\" %> is deprecated, " <>
|
||||
"please use <.#{unquote(name)} class=\"...\" /> inside HEEx templates instead"
|
||||
)
|
||||
|
||||
attrs =
|
||||
for {k, v} <- opts do
|
||||
safe_k =
|
||||
|
Reference in New Issue
Block a user