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

@ -102,7 +102,9 @@ defmodule PhilomenaWeb.AppView do
end end
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") method = Keyword.get(args, :method, "get")
class = Keyword.get(args, :class, nil) class = Keyword.get(args, :class, nil)
data = Keyword.get(args, :data, []) data = Keyword.get(args, :data, [])