File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
lib/safira_web/live/landing/components Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,18 @@ defmodule SafiraWeb.Landing.Components.Schedule do
1919
2020 @ impl true
2121 def render ( assigns ) do
22- current_day =
23- get_day (
24- fetch_current_date_from_params ( assigns . params ) ,
25- assigns . event_start_date ,
26- assigns . event_end_date
27- )
28-
2922 ~H"""
3023 < div class = "xl:grid 2xl:grid-cols-2 gap-8 relative select-none " >
3124 < div class = "mb-20 2xl:mb-0 " >
3225 < div class = "sticky top-12 " >
3326 < . schedule_day
34- date = { current_day }
27+ date = {
28+ get_day (
29+ fetch_current_date_from_params ( assigns . params ) ,
30+ assigns . event_start_date ,
31+ assigns . event_end_date
32+ )
33+ }
3534 url = { @ url }
3635 params = { @ params }
3736 filters = { fetch_filters_from_params ( assigns . params ) }
@@ -41,7 +40,13 @@ defmodule SafiraWeb.Landing.Components.Schedule do
4140 < . filters
4241 :if = { @ has_filters? }
4342 url = { @ url }
44- current_day = { current_day }
43+ current_day = {
44+ get_day (
45+ fetch_current_date_from_params ( assigns . params ) ,
46+ assigns . event_start_date ,
47+ assigns . event_end_date
48+ )
49+ }
4550 filters = { fetch_filters_from_params ( assigns . params ) }
4651 />
4752 </ div >
You can’t perform that action at this time.
0 commit comments