update blog post, and run credo with 'pi'
This commit is contained in:
@@ -29,6 +29,7 @@ defmodule FirehoseWeb.CoreComponents do
|
||||
use Phoenix.Component
|
||||
use Gettext, backend: FirehoseWeb.Gettext
|
||||
|
||||
alias Phoenix.HTML.Form
|
||||
alias Phoenix.LiveView.JS
|
||||
|
||||
@doc """
|
||||
@@ -181,7 +182,7 @@ defmodule FirehoseWeb.CoreComponents do
|
||||
def input(%{type: "checkbox"} = assigns) do
|
||||
assigns =
|
||||
assign_new(assigns, :checked, fn ->
|
||||
Phoenix.HTML.Form.normalize_value("checkbox", assigns[:value])
|
||||
Form.normalize_value("checkbox", assigns[:value])
|
||||
end)
|
||||
|
||||
~H"""
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<header class="navbar px-4 sm:px-6 lg:px-8 border-b border-base-200">
|
||||
<div class="flex-1">
|
||||
<a href="/" class="font-display text-xl font-semibold tracking-tight text-primary hover:opacity-80 transition">
|
||||
<a
|
||||
href="/"
|
||||
class="font-display text-xl font-semibold tracking-tight text-primary hover:opacity-80 transition"
|
||||
>
|
||||
firehose
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user