Extract component

This commit is contained in:
2024-11-02 16:10:30 +01:00
parent cd0180e132
commit ba4e6f4d17
4 changed files with 65 additions and 43 deletions

View File

@@ -30,7 +30,11 @@
</div>
<div class="dates grid grid-cols-7">
<%= for day <- get_days_of_month(assigns, first_of_month) do %>
<.time_button day={day}></.time_button>
<.live_component
module={MihainatorWeb.DayComponent}
id={"day_#{elem(day, 0)}"}
day={day}
/>
<% end %>
</div>
</div>