fix warnings

This commit is contained in:
Luna D. 2024-07-02 21:42:21 +02:00
parent 128f63639f
commit 7bb79bc17f
No known key found for this signature in database
GPG key ID: 4B1C63448394F688
2 changed files with 7 additions and 5 deletions

View file

@ -12,19 +12,19 @@
.dropdown--$(type) .dropdown__item:hover .dropdown__text {
background: var(--$(type)-color);
}
.dropdown--$(type) .dropdown__icon {
background: var(--$(type)-dark-color);
}
.dropdown--$(type) .dropdown__item:hover .dropdown__icon {
background: var(--$(type)-color);
}
.dropdown--$(type) .dropdown__separator {
border-color: var(--$(type)-border-color);
}
.dropdown--$(type) .dropdown__link:hover {
background: var(--$(type)-color);
}

View file

@ -102,7 +102,9 @@ defmodule PhilomenaWeb.AppView do
end
end
def button_to(route, args \\ [], do: fun) do
def button_to(text, route, args \\ [])
def button_to(route, args, do: fun) do
method = Keyword.get(args, :method, "get")
class = Keyword.get(args, :class, nil)
data = Keyword.get(args, :data, [])