diff --git a/lib/cal_web/components/core_components.ex b/lib/cal_web/components/core_components.ex
index 9ac40d3..8dfd6c3 100644
--- a/lib/cal_web/components/core_components.ex
+++ b/lib/cal_web/components/core_components.ex
@@ -79,7 +79,7 @@ defmodule CalWeb.CoreComponents do
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
@@ -122,9 +122,9 @@ defmodule CalWeb.CoreComponents do
<.icon :if={@kind == :info} name="hero-information-circle-mini" class="h-4 w-4" />
<.icon :if={@kind == :error} name="hero-exclamation-circle-mini" class="h-4 w-4" />
- <%= @title %>
+ {@title}
- <%= msg %>
+ {msg}
<.icon name="hero-x-mark-solid" class="h-5 w-5 opacity-40 group-hover:opacity-70" />
@@ -185,9 +185,9 @@ defmodule CalWeb.CoreComponents do
~H"""
<.form :let={f} for={@for} as={@as} {@rest}>
- <%= render_slot(@inner_block, f) %>
+ {render_slot(@inner_block, f)}
- <%= render_slot(action, f) %>
+ {render_slot(action, f)}
@@ -219,7 +219,7 @@ defmodule CalWeb.CoreComponents do
]}
{@rest}
>
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
end
@@ -287,9 +287,9 @@ defmodule CalWeb.CoreComponents do
class="rounded border-zinc-300 text-zinc-900 focus:ring-0"
{@rest}
/>
- <%= @label %>
+ {@label}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -297,7 +297,7 @@ defmodule CalWeb.CoreComponents do
def input(%{type: "select"} = assigns) do
~H"""
- <.label for={@id}><%= @label %>
+ <.label for={@id}>{@label}
- <%= @prompt %>
- <%= Phoenix.HTML.Form.options_for_select(@options, @value) %>
+ {@prompt}
+ {Phoenix.HTML.Form.options_for_select(@options, @value)}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -316,7 +316,7 @@ defmodule CalWeb.CoreComponents do
def input(%{type: "textarea"} = assigns) do
~H"""
- <.label for={@id}><%= @label %>
+ <.label for={@id}>{@label}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -337,7 +337,7 @@ defmodule CalWeb.CoreComponents do
def input(assigns) do
~H"""
- <.label for={@id}><%= @label %>
+ <.label for={@id}>{@label}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -365,7 +365,7 @@ defmodule CalWeb.CoreComponents do
def label(assigns) do
~H"""
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
end
@@ -379,7 +379,7 @@ defmodule CalWeb.CoreComponents do
~H"""
<.icon name="hero-exclamation-circle-mini" class="mt-0.5 h-5 w-5 flex-none" />
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
end
@@ -398,13 +398,13 @@ defmodule CalWeb.CoreComponents do
"""
end
@@ -445,8 +445,8 @@ defmodule CalWeb.CoreComponents do
- <%= col[:label] %>
- <%= gettext("Actions") %>
+ {col[:label]}
+ {gettext("Actions")}
- <%= render_slot(col, @row_item.(row)) %>
+ {render_slot(col, @row_item.(row))}
@@ -474,7 +474,7 @@ defmodule CalWeb.CoreComponents do
:for={action <- @action}
class="relative ml-4 font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
>
- <%= render_slot(action, @row_item.(row)) %>
+ {render_slot(action, @row_item.(row))}
@@ -504,8 +504,8 @@ defmodule CalWeb.CoreComponents do
-
<%= item.title %>
- <%= render_slot(item) %>
+ {item.title}
+ {render_slot(item)}
@@ -530,7 +530,7 @@ defmodule CalWeb.CoreComponents do
class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
>
<.icon name="hero-arrow-left-solid" class="h-3 w-3" />
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
diff --git a/lib/cal_web/components/layouts/app.html.heex b/lib/cal_web/components/layouts/app.html.heex
index 3d8af17..0238db6 100644
--- a/lib/cal_web/components/layouts/app.html.heex
+++ b/lib/cal_web/components/layouts/app.html.heex
@@ -1,2 +1,2 @@
<.flash_group flash={@flash} />
-<%= @inner_content %>
+{@inner_content}
diff --git a/lib/cal_web/components/layouts/root.html.heex b/lib/cal_web/components/layouts/root.html.heex
index 6b45cfa..ee77bb9 100644
--- a/lib/cal_web/components/layouts/root.html.heex
+++ b/lib/cal_web/components/layouts/root.html.heex
@@ -5,7 +5,7 @@
<.live_title suffix=" ยท Phoenix Framework">
- <%= assigns[:page_title] || "Cal" %>
+ {assigns[:page_title] || "Cal"}
- <%= @inner_content %>
+ {@inner_content}