Skip to content

Commit 9b129c5

Browse files
committed
fix:code quality
1 parent d9b28d7 commit 9b129c5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

lib/yearbook_web/components/core_components.ex

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ defmodule YearbookWeb.CoreComponents do
8989
<.button phx-click="go" variant="primary">Send!</.button>
9090
<.button navigate={~p"/"}>Home</.button>
9191
"""
92-
attr :type, :string, default: "button"
92+
attr :type, :string, default: "button"
9393
attr :class, :string, default: ""
9494
attr :variant, :string, default: "primary", values: ~w(primary secondary)
9595
attr :rest, :global, include: ~w(disabled form name value)
@@ -101,15 +101,12 @@ attr :type, :string, default: "button"
101101
<button
102102
type={@type}
103103
class={[
104-
105104
@class,
106105
variant_classes(@variant)
107-
108-
109106
]}
110107
{@rest}
111108
>
112-
<%= render_slot(@inner_block) %>
109+
{render_slot(@inner_block)}
113110
</button>
114111
"""
115112
end
@@ -123,7 +120,6 @@ attr :type, :string, default: "button"
123120
"rounded-4xl bg-white p-4 font-semibold tracking-wider text-[#ee7749] cursor-pointer"
124121
end
125122

126-
127123
@doc """
128124
Renders an input with label and error messages.
129125

0 commit comments

Comments
 (0)