From b10f9797cb15d0e8a4e4b5014138dc5bfd875d88 Mon Sep 17 00:00:00 2001 From: href Date: Tue, 7 Sep 2021 08:14:33 +0200 Subject: live fixes/improvements --- lib/lsg_web/components/event_component.ex | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/lsg_web/components/event_component.ex') diff --git a/lib/lsg_web/components/event_component.ex b/lib/lsg_web/components/event_component.ex index 3b9cd3b..fa81d19 100644 --- a/lib/lsg_web/components/event_component.ex +++ b/lib/lsg_web/components/event_component.ex @@ -1,6 +1,13 @@ defmodule LSGWeb.EventComponent do use Phoenix.Component + def content(assigns = %{event: %{type: :day_changed}}) do + ~H""" + Day changed: + <%= Date.to_string(@date) %> + """ + end + def content(assigns = %{event: %{type: :quit}}) do ~H""" -- cgit v1.2.3